Skip to content

Commit

Permalink
New Resource: azurerm_system_center_virtual_machine_manager_server (#…
Browse files Browse the repository at this point in the history
…24278)

* New Resource: azurerm_system_center_virtual_machine_manager_server

* update code

* update code

* update code

* update code

* update code

* update code

* update code

* update code

* update code

* update code

* update code

* update code

* update code

* update code

* update code

* update code
  • Loading branch information
neil-yechenwei authored Feb 20, 2024
1 parent 7344add commit 5d4c43b
Show file tree
Hide file tree
Showing 202 changed files with 11,004 additions and 123 deletions.
3 changes: 3 additions & 0 deletions .github/labeler-issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,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 @@ -575,6 +575,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 @@ -126,6 +126,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
251 changes: 128 additions & 123 deletions internal/clients/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,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 @@ -158,129 +159,130 @@ 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_v2021_06_01.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
ManagedHSMs *managedhsm.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 *nginx_2023_09_01.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
RedHatOpenShift *redhatopenshift.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_v2021_06_01.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
ManagedHSMs *managedhsm.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 *nginx_2023_09_01.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
RedHatOpenShift *redhatopenshift.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 @@ -633,6 +635,9 @@ func (client *Client) Build(ctx context.Context, o *common.ClientOptions) error
if client.TrafficManager, err = trafficManager.NewClient(o); err != nil {
return fmt.Errorf("building clients for Traffic Manager: %+v", err)
}
if client.TrafficManager, err = trafficManager.NewClient(o); err != nil {
return fmt.Errorf("building clients for Traffic Manager: %+v", err)
}
if client.VideoAnalyzer, err = videoAnalyzer.NewClient(o); err != nil {
return fmt.Errorf("building clients for Video Analyzer: %+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 @@ -126,6 +126,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 @@ -211,6 +212,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

0 comments on commit 5d4c43b

Please sign in to comment.