Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Resource: azurerm_system_center_virtual_machine_manager_server #24278

Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/labeler-issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@ service/subscription:
service/synapse:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_synapse_((.|\n)*)###'

service/systemcentervirtualmachinemanager:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_system_center_virtual_machine_manager_server((.|\n)*)###'

service/traffic-manager:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_traffic_manager_((.|\n)*)###'

Expand Down
5 changes: 5 additions & 0 deletions .github/labeler-pull-request-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,11 @@ service/synapse:
- any-glob-to-any-file:
- internal/services/synapse/**/*

service/systemcentervirtualmachinemanager:
- changed-files:
- any-glob-to-any-file:
- internal/services/systemcentervirtualmachinemanager/**/*

service/traffic-manager:
- changed-files:
- any-glob-to-any-file:
Expand Down
1 change: 1 addition & 0 deletions .teamcity/components/generated/services.kt
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ var services = mapOf(
"streamanalytics" to "Stream Analytics",
"subscription" to "Subscription",
"synapse" to "Synapse",
"systemcentervirtualmachinemanager" to "System Center Virtual Machine Manager",
"iottimeseriesinsights" to "Time Series Insights",
"trafficmanager" to "Traffic Manager",
"vmware" to "VMware",
Expand Down
248 changes: 127 additions & 121 deletions internal/clients/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
redis_2023_08_01 "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01"
servicenetworking_v2023_05_01_preview "github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-05-01-preview"
storagecache_2023_05_01 "github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01"
systemcentervirtualmachinemanager_2023_10_07 "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07"
timeseriesinsights_v2020_05_15 "github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15"
"github.com/hashicorp/terraform-provider-azurerm/internal/common"
"github.com/hashicorp/terraform-provider-azurerm/internal/features"
Expand Down Expand Up @@ -139,6 +140,7 @@ import (
streamAnalytics "github.com/hashicorp/terraform-provider-azurerm/internal/services/streamanalytics/client"
subscription "github.com/hashicorp/terraform-provider-azurerm/internal/services/subscription/client"
synapse "github.com/hashicorp/terraform-provider-azurerm/internal/services/synapse/client"
systemCenterVirtualMachineManager "github.com/hashicorp/terraform-provider-azurerm/internal/services/systemcentervirtualmachinemanager/client"
trafficManager "github.com/hashicorp/terraform-provider-azurerm/internal/services/trafficmanager/client"
videoAnalyzer "github.com/hashicorp/terraform-provider-azurerm/internal/services/videoanalyzer/client"
vmware "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/client"
Expand All @@ -155,127 +157,128 @@ type Client struct {
Account *ResourceManagerAccount
Features features.UserFeatures

AadB2c *aadb2c_v2021_04_01_preview.Client
Advisor *advisor.Client
AnalysisServices *analysisservices_v2017_08_01.Client
ApiManagement *apiManagement.Client
AppConfiguration *appConfiguration.Client
AppInsights *applicationInsights.Client
AppPlatform *appPlatform.Client
AppService *appService.Client
ArcKubernetes *arckubernetes.Client
ArcResourceBridge *arcResourceBridge.Client
Attestation *attestation.Client
Authorization *authorization.Client
Automanage *automanage.Client
Automation *automation.Client
AzureStackHCI *azurestackhci_v2023_08_01.Client
Batch *batch.Client
Blueprints *blueprints.Client
Bot *bot.Client
Cdn *cdn.Client
Cognitive *cognitiveServices.Client
Communication *communication.Client
Compute *compute.Client
ConfidentialLedger *confidentialledger.Client
Connections *connections.Client
Consumption *consumption.Client
ContainerApps *containerapps.Client
Containers *containerServices.Client
Cosmos *cosmosdb.Client
CostManagement *costmanagement.Client
CustomProviders *customproviders.Client
Dashboard *dashboard.Client
DatabaseMigration *datamigration.Client
DataBricks *databricks.Client
DataboxEdge *databoxedge.Client
Datadog *datadog_v2021_03_01.Client
DataFactory *datafactory.Client
DataProtection *dataprotection.Client
DataShare *datashare.Client
DesktopVirtualization *desktopvirtualization.Client
DevTestLabs *devtestlabs.Client
DigitalTwins *digitaltwins.Client
Disks *disks.Client
Dns *dns_v2018_05_01.Client
DomainServices *domainservices.Client
Elastic *elastic.Client
ElasticSan *elasticsan.Client
EventGrid *eventgrid_v2022_06_15.Client
Eventhub *eventhub.Client
FluidRelay *fluidrelay_2022_05_26.Client
Frontdoor *frontdoor.Client
Graph *graph.Client
HSM *hsm.Client
HDInsight *hdinsight.Client
HybridCompute *hybridcompute.Client
HealthCare *healthcare.Client
IoTCentral *iotcentral.Client
IoTHub *iothub.Client
IoTTimeSeriesInsights *timeseriesinsights_v2020_05_15.Client
KeyVault *keyvault.Client
Kusto *kusto.Client
LabService *labservice.Client
Legacy *legacy.Client
Lighthouse *lighthouse.Client
LoadBalancers *loadbalancers.Client
LogAnalytics *loganalytics.Client
Logic *logic.Client
Logz *logz.Client
MachineLearning *machinelearning.Client
Maintenance *maintenance.Client
ManagedApplication *managedapplication.Client
ManagementGroups *managementgroup.Client
Maps *maps.Client
MariaDB *mariadb.Client
Media *media.Client
MixedReality *mixedreality.Client
Monitor *monitor.Client
MobileNetwork *mobilenetwork.Client
MSSQL *mssql.Client
MSSQLManagedInstance *mssqlmanagedinstance.Client
MySQL *mysql.Client
NetApp *netapp.Client
Network *network.Client
NetworkFunction *networkfunction.Client
NewRelic *newrelic.Client
Nginx *nginx2.Client
NotificationHubs *notificationhub.Client
Orbital *orbital.Client
PaloAlto *paloalto.Client
Policy *policy.Client
Portal *portal.Client
Postgres *postgres.Client
PowerBI *powerBI.Client
PrivateDns *privatedns.Client
PrivateDnsResolver *dnsresolver.Client
Purview *purview.Client
RecoveryServices *recoveryServices.Client
Redis *redis_2023_08_01.Client
RedisEnterprise *redisenterprise.Client
Relay *relay.Client
Resource *resource.Client
Search *search.Client
SecurityCenter *securityCenter.Client
Sentinel *sentinel.Client
ServiceBus *serviceBus.Client
ServiceConnector *serviceConnector.Client
ServiceFabric *serviceFabric.Client
ServiceFabricManaged *serviceFabricManaged.Client
ServiceNetworking *servicenetworking_v2023_05_01_preview.Client
SignalR *signalr.Client
Storage *storage.Client
StorageCache *storagecache_2023_05_01.Client
StorageMover *storageMover.Client
StreamAnalytics *streamAnalytics.Client
Subscription *subscription.Client
Sql *sql.Client
Synapse *synapse.Client
TrafficManager *trafficManager.Client
VideoAnalyzer *videoAnalyzer.Client
Vmware *vmware.Client
VoiceServices *voiceServices.Client
Web *web.Client
AadB2c *aadb2c_v2021_04_01_preview.Client
Advisor *advisor.Client
AnalysisServices *analysisservices_v2017_08_01.Client
ApiManagement *apiManagement.Client
AppConfiguration *appConfiguration.Client
AppInsights *applicationInsights.Client
AppPlatform *appPlatform.Client
AppService *appService.Client
ArcKubernetes *arckubernetes.Client
ArcResourceBridge *arcResourceBridge.Client
Attestation *attestation.Client
Authorization *authorization.Client
Automanage *automanage.Client
Automation *automation.Client
AzureStackHCI *azurestackhci_v2023_08_01.Client
Batch *batch.Client
Blueprints *blueprints.Client
Bot *bot.Client
Cdn *cdn.Client
Cognitive *cognitiveServices.Client
Communication *communication.Client
Compute *compute.Client
ConfidentialLedger *confidentialledger.Client
Connections *connections.Client
Consumption *consumption.Client
ContainerApps *containerapps.Client
Containers *containerServices.Client
Cosmos *cosmosdb.Client
CostManagement *costmanagement.Client
CustomProviders *customproviders.Client
Dashboard *dashboard.Client
DatabaseMigration *datamigration.Client
DataBricks *databricks.Client
DataboxEdge *databoxedge.Client
Datadog *datadog_v2021_03_01.Client
DataFactory *datafactory.Client
DataProtection *dataprotection.Client
DataShare *datashare.Client
DesktopVirtualization *desktopvirtualization.Client
DevTestLabs *devtestlabs.Client
DigitalTwins *digitaltwins.Client
Disks *disks.Client
Dns *dns_v2018_05_01.Client
DomainServices *domainservices.Client
Elastic *elastic.Client
ElasticSan *elasticsan.Client
EventGrid *eventgrid_v2022_06_15.Client
Eventhub *eventhub.Client
FluidRelay *fluidrelay_2022_05_26.Client
Frontdoor *frontdoor.Client
Graph *graph.Client
HSM *hsm.Client
HDInsight *hdinsight.Client
HybridCompute *hybridcompute.Client
HealthCare *healthcare.Client
IoTCentral *iotcentral.Client
IoTHub *iothub.Client
IoTTimeSeriesInsights *timeseriesinsights_v2020_05_15.Client
KeyVault *keyvault.Client
Kusto *kusto.Client
LabService *labservice.Client
Legacy *legacy.Client
Lighthouse *lighthouse.Client
LoadBalancers *loadbalancers.Client
LogAnalytics *loganalytics.Client
Logic *logic.Client
Logz *logz.Client
MachineLearning *machinelearning.Client
Maintenance *maintenance.Client
ManagedApplication *managedapplication.Client
ManagementGroups *managementgroup.Client
Maps *maps.Client
MariaDB *mariadb.Client
Media *media.Client
MixedReality *mixedreality.Client
Monitor *monitor.Client
MobileNetwork *mobilenetwork.Client
MSSQL *mssql.Client
MSSQLManagedInstance *mssqlmanagedinstance.Client
MySQL *mysql.Client
NetApp *netapp.Client
Network *network.Client
NetworkFunction *networkfunction.Client
NewRelic *newrelic.Client
Nginx *nginx2.Client
NotificationHubs *notificationhub.Client
Orbital *orbital.Client
PaloAlto *paloalto.Client
Policy *policy.Client
Portal *portal.Client
Postgres *postgres.Client
PowerBI *powerBI.Client
PrivateDns *privatedns.Client
PrivateDnsResolver *dnsresolver.Client
Purview *purview.Client
RecoveryServices *recoveryServices.Client
Redis *redis_2023_08_01.Client
RedisEnterprise *redisenterprise.Client
Relay *relay.Client
Resource *resource.Client
Search *search.Client
SecurityCenter *securityCenter.Client
Sentinel *sentinel.Client
ServiceBus *serviceBus.Client
ServiceConnector *serviceConnector.Client
ServiceFabric *serviceFabric.Client
ServiceFabricManaged *serviceFabricManaged.Client
ServiceNetworking *servicenetworking_v2023_05_01_preview.Client
SignalR *signalr.Client
Storage *storage.Client
StorageCache *storagecache_2023_05_01.Client
StorageMover *storageMover.Client
StreamAnalytics *streamAnalytics.Client
Subscription *subscription.Client
Sql *sql.Client
Synapse *synapse.Client
SystemCenterVirtualMachineManager *systemcentervirtualmachinemanager_2023_10_07.Client
TrafficManager *trafficManager.Client
VideoAnalyzer *videoAnalyzer.Client
Vmware *vmware.Client
VoiceServices *voiceServices.Client
Web *web.Client
}

// NOTE: it should be possible for this method to become Private once the top level Client's removed
Expand Down Expand Up @@ -600,6 +603,9 @@ func (client *Client) Build(ctx context.Context, o *common.ClientOptions) error
}

client.Synapse = synapse.NewClient(o)
if client.SystemCenterVirtualMachineManager, err = systemCenterVirtualMachineManager.NewClient(o); err != nil {
return fmt.Errorf("building clients for System Center Virtual Machine Manager: %+v", err)
}
if client.TrafficManager, err = trafficManager.NewClient(o); err != nil {
return fmt.Errorf("building clients for Traffic Manager: %+v", err)
}
Expand Down
2 changes: 2 additions & 0 deletions internal/provider/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/services/streamanalytics"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/subscription"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/synapse"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/systemcentervirtualmachinemanager"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/trafficmanager"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/videoanalyzer"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware"
Expand Down Expand Up @@ -205,6 +206,7 @@ func SupportedTypedServices() []sdk.TypedServiceRegistration {
search.Registration{},
springcloud.Registration{},
securitycenter.Registration{},
systemcentervirtualmachinemanager.Registration{},
vmware.Registration{},
voiceservices.Registration{},
web.Registration{},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package client

import (
"fmt"

systemcentervirtualmachinemanager_2023_10_07 "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07"
"github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager"
"github.com/hashicorp/terraform-provider-azurerm/internal/common"
)

func NewClient(o *common.ClientOptions) (*systemcentervirtualmachinemanager_2023_10_07.Client, error) {
client, err := systemcentervirtualmachinemanager_2023_10_07.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) {
o.Configure(c, o.Authorizers.ResourceManager)
})
if err != nil {
return nil, fmt.Errorf("building System Center Virtual Machine Manager client: %+v", err)
}

return client, nil
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package systemcentervirtualmachinemanager

import (
"github.com/hashicorp/terraform-provider-azurerm/internal/sdk"
)

type Registration struct{}

var _ sdk.TypedServiceRegistration = Registration{}

func (r Registration) AssociatedGitHubLabel() string {
return "service/systemcentervirtualmachinemanager"
}

// Name is the name of this Service
func (r Registration) Name() string {
return "System Center Virtual Machine Manager"
}

// WebsiteCategories returns a list of categories which can be used for the sidebar
func (r Registration) WebsiteCategories() []string {
return []string{
"System Center Virtual Machine Manager",
}
}

func (r Registration) DataSources() []sdk.DataSource {
return []sdk.DataSource{}
}

func (r Registration) Resources() []sdk.Resource {
return []sdk.Resource{
SystemCenterVirtualMachineManagerServerResource{},
}
}
Loading
Loading