diff --git a/resource-manager/aad/2021-05-01/domainservices/README.md b/resource-manager/aad/2021-05-01/domainservices/README.md index 9aaf46050e0..8e4ba0df602 100644 --- a/resource-manager/aad/2021-05-01/domainservices/README.md +++ b/resource-manager/aad/2021-05-01/domainservices/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := domainservices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := domainservices.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/aadb2c/2021-04-01-preview/tenants/README.md b/resource-manager/aadb2c/2021-04-01-preview/tenants/README.md index 5a2c76106c3..af7dbee4db7 100644 --- a/resource-manager/aadb2c/2021-04-01-preview/tenants/README.md +++ b/resource-manager/aadb2c/2021-04-01-preview/tenants/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := tenants.NewSubscriptionID() +id := commonids.NewSubscriptionID() payload := tenants.CheckNameAvailabilityRequest{ // ... @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tenants.NewResourceGroupID() +id := commonids.NewResourceGroupID() // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -107,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := tenants.NewSubscriptionID() +id := commonids.NewSubscriptionID() // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/advisor/2020-01-01/configurations/README.md b/resource-manager/advisor/2020-01-01/configurations/README.md index 90852546eab..e6197bdda00 100644 --- a/resource-manager/advisor/2020-01-01/configurations/README.md +++ b/resource-manager/advisor/2020-01-01/configurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2020-01-01/configurations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := configurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := configurations.ConfigData{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := configurations.ConfigData{ // ... @@ -66,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -82,7 +83,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/advisor/2020-01-01/getrecommendations/README.md b/resource-manager/advisor/2020-01-01/getrecommendations/README.md index 43ec6c8e483..f2d6052912c 100644 --- a/resource-manager/advisor/2020-01-01/getrecommendations/README.md +++ b/resource-manager/advisor/2020-01-01/getrecommendations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2020-01-01/getrecommendations" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := getrecommendations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.RecommendationsList(ctx, id, getrecommendations.DefaultRecommendationsListOperationOptions())` can be used to do batched pagination items, err := client.RecommendationsListComplete(ctx, id, getrecommendations.DefaultRecommendationsListOperationOptions()) diff --git a/resource-manager/advisor/2020-01-01/suppressions/README.md b/resource-manager/advisor/2020-01-01/suppressions/README.md index 963d8069167..3c015afb5d3 100644 --- a/resource-manager/advisor/2020-01-01/suppressions/README.md +++ b/resource-manager/advisor/2020-01-01/suppressions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2020-01-01/suppressions" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := suppressions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, suppressions.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, suppressions.DefaultListOperationOptions()) diff --git a/resource-manager/advisor/2022-10-01/advisorscore/README.md b/resource-manager/advisor/2022-10-01/advisorscore/README.md index 28a2a07fbce..647ab1cb58d 100644 --- a/resource-manager/advisor/2022-10-01/advisorscore/README.md +++ b/resource-manager/advisor/2022-10-01/advisorscore/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2022-10-01/advisorscore" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := advisorscore.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/advisor/2022-10-01/configurations/README.md b/resource-manager/advisor/2022-10-01/configurations/README.md index 7e606e43a55..593098b2d26 100644 --- a/resource-manager/advisor/2022-10-01/configurations/README.md +++ b/resource-manager/advisor/2022-10-01/configurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2022-10-01/configurations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := configurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := configurations.ConfigData{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := configurations.ConfigData{ // ... @@ -66,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -82,7 +83,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/advisor/2022-10-01/getrecommendations/README.md b/resource-manager/advisor/2022-10-01/getrecommendations/README.md index 2d73ed19715..1e4e6d73ca2 100644 --- a/resource-manager/advisor/2022-10-01/getrecommendations/README.md +++ b/resource-manager/advisor/2022-10-01/getrecommendations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2022-10-01/getrecommendations" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := getrecommendations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.RecommendationsList(ctx, id, getrecommendations.DefaultRecommendationsListOperationOptions())` can be used to do batched pagination items, err := client.RecommendationsListComplete(ctx, id, getrecommendations.DefaultRecommendationsListOperationOptions()) diff --git a/resource-manager/advisor/2022-10-01/prediction/README.md b/resource-manager/advisor/2022-10-01/prediction/README.md index 1cb4081b4e3..e606627fb18 100644 --- a/resource-manager/advisor/2022-10-01/prediction/README.md +++ b/resource-manager/advisor/2022-10-01/prediction/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2022-10-01/prediction" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := prediction.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := prediction.PredictionRequest{ // ... diff --git a/resource-manager/advisor/2022-10-01/suppressions/README.md b/resource-manager/advisor/2022-10-01/suppressions/README.md index c9bd83d61b3..ccc86ccc813 100644 --- a/resource-manager/advisor/2022-10-01/suppressions/README.md +++ b/resource-manager/advisor/2022-10-01/suppressions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2022-10-01/suppressions" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := suppressions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, suppressions.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, suppressions.DefaultListOperationOptions()) diff --git a/resource-manager/advisor/2023-01-01/advisorscore/README.md b/resource-manager/advisor/2023-01-01/advisorscore/README.md index 0f7db1e6801..35c0ef614c6 100644 --- a/resource-manager/advisor/2023-01-01/advisorscore/README.md +++ b/resource-manager/advisor/2023-01-01/advisorscore/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/advisorscore" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := advisorscore.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/advisor/2023-01-01/configurations/README.md b/resource-manager/advisor/2023-01-01/configurations/README.md index eb7b9384787..e857744fb41 100644 --- a/resource-manager/advisor/2023-01-01/configurations/README.md +++ b/resource-manager/advisor/2023-01-01/configurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/configurations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := configurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := configurations.ConfigData{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := configurations.ConfigData{ // ... @@ -66,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -82,7 +83,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/advisor/2023-01-01/getrecommendations/README.md b/resource-manager/advisor/2023-01-01/getrecommendations/README.md index fdfdb4e889e..ebd6376edd8 100644 --- a/resource-manager/advisor/2023-01-01/getrecommendations/README.md +++ b/resource-manager/advisor/2023-01-01/getrecommendations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := getrecommendations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.RecommendationsList(ctx, id, getrecommendations.DefaultRecommendationsListOperationOptions())` can be used to do batched pagination items, err := client.RecommendationsListComplete(ctx, id, getrecommendations.DefaultRecommendationsListOperationOptions()) diff --git a/resource-manager/advisor/2023-01-01/prediction/README.md b/resource-manager/advisor/2023-01-01/prediction/README.md index 1f3292975e3..6dd2e7c1272 100644 --- a/resource-manager/advisor/2023-01-01/prediction/README.md +++ b/resource-manager/advisor/2023-01-01/prediction/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/prediction" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := prediction.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := prediction.PredictionRequest{ // ... diff --git a/resource-manager/advisor/2023-01-01/suppressions/README.md b/resource-manager/advisor/2023-01-01/suppressions/README.md index 51ba0fbe104..e2fad2494c1 100644 --- a/resource-manager/advisor/2023-01-01/suppressions/README.md +++ b/resource-manager/advisor/2023-01-01/suppressions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := suppressions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, suppressions.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, suppressions.DefaultListOperationOptions()) diff --git a/resource-manager/alertsmanagement/2019-05-05-preview/actionrules/README.md b/resource-manager/alertsmanagement/2019-05-05-preview/actionrules/README.md index 80586c3ce8b..4bee17bec46 100644 --- a/resource-manager/alertsmanagement/2019-05-05-preview/actionrules/README.md +++ b/resource-manager/alertsmanagement/2019-05-05-preview/actionrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-05-05-preview/actionrules" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := actionrules.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, actionrules.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, actionrules.DefaultListByResourceGroupOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := actionrules.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, actionrules.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, actionrules.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/README.md b/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/README.md index 671f131c7ee..2ae83551ccd 100644 --- a/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/README.md +++ b/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements" ``` @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alertsmanagements.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.AlertsGetAll(ctx, id, alertsmanagements.DefaultAlertsGetAllOperationOptions())` can be used to do batched pagination items, err := client.AlertsGetAllComplete(ctx, id, alertsmanagements.DefaultAlertsGetAllOperationOptions()) @@ -94,7 +95,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alertsmanagements.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.AlertsGetSummary(ctx, id, alertsmanagements.DefaultAlertsGetSummaryOperationOptions()) if err != nil { diff --git a/resource-manager/alertsmanagement/2019-05-05-preview/smartgroups/README.md b/resource-manager/alertsmanagement/2019-05-05-preview/smartgroups/README.md index 1e6a45b2c3e..da2d1f00f07 100644 --- a/resource-manager/alertsmanagement/2019-05-05-preview/smartgroups/README.md +++ b/resource-manager/alertsmanagement/2019-05-05-preview/smartgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-05-05-preview/smartgroups" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := smartgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.GetAll(ctx, id, smartgroups.DefaultGetAllOperationOptions())` can be used to do batched pagination items, err := client.GetAllComplete(ctx, id, smartgroups.DefaultGetAllOperationOptions()) diff --git a/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/README.md b/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/README.md index 14ee511f54d..7ccebe6d51e 100644 --- a/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/README.md +++ b/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := smartdetectoralertrules.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, smartdetectoralertrules.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, smartdetectoralertrules.DefaultListOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := smartdetectoralertrules.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, smartdetectoralertrules.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, smartdetectoralertrules.DefaultListByResourceGroupOperationOptions()) diff --git a/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/README.md b/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/README.md index 110f4c5eb0c..d63c01d5de9 100644 --- a/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/README.md +++ b/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alertprocessingrules.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := alertprocessingrules.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/README.md b/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/README.md index aa876ae4578..a39447e95d3 100644 --- a/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/README.md +++ b/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := prometheusrulegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := prometheusrulegroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/analysisservices/2017-08-01/analysisservices/README.md b/resource-manager/analysisservices/2017-08-01/analysisservices/README.md index 021acd583b7..89088722e29 100644 --- a/resource-manager/analysisservices/2017-08-01/analysisservices/README.md +++ b/resource-manager/analysisservices/2017-08-01/analysisservices/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := analysisservices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ServersListSkusForNew(ctx, id) if err != nil { diff --git a/resource-manager/analysisservices/2017-08-01/servers/README.md b/resource-manager/analysisservices/2017-08-01/servers/README.md index 5850fe1f2c3..20cff878739 100644 --- a/resource-manager/analysisservices/2017-08-01/servers/README.md +++ b/resource-manager/analysisservices/2017-08-01/servers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers" ``` @@ -106,7 +107,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -122,7 +123,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/apimanagement/2022-08-01/apimanagementservice/README.md b/resource-manager/apimanagement/2022-08-01/apimanagementservice/README.md index abc86cd09c1..c519646a9c8 100644 --- a/resource-manager/apimanagement/2022-08-01/apimanagementservice/README.md +++ b/resource-manager/apimanagement/2022-08-01/apimanagementservice/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice" ``` @@ -58,7 +59,7 @@ if err := client.BackupThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := apimanagementservice.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := apimanagementservice.ApiManagementServiceCheckNameAvailabilityParameters{ // ... @@ -124,7 +125,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apimanagementservice.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.GetDomainOwnershipIdentifier(ctx, id) if err != nil { @@ -156,7 +157,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apimanagementservice.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -173,7 +174,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apimanagementservice.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/apimanagement/2022-08-01/deletedservice/README.md b/resource-manager/apimanagement/2022-08-01/deletedservice/README.md index 3bccdcacf19..40fe49735d4 100644 --- a/resource-manager/apimanagement/2022-08-01/deletedservice/README.md +++ b/resource-manager/apimanagement/2022-08-01/deletedservice/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deletedservice.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/apimanagement/2022-08-01/skus/README.md b/resource-manager/apimanagement/2022-08-01/skus/README.md index 451b8111e12..a0b3a42c5c8 100644 --- a/resource-manager/apimanagement/2022-08-01/skus/README.md +++ b/resource-manager/apimanagement/2022-08-01/skus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/skus" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := skus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ApiManagementSkusList(ctx, id)` can be used to do batched pagination items, err := client.ApiManagementSkusListComplete(ctx, id) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apimanagementservice/README.md b/resource-manager/apimanagement/2023-03-01-preview/apimanagementservice/README.md index cba943217c7..005515ef54b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apimanagementservice/README.md +++ b/resource-manager/apimanagement/2023-03-01-preview/apimanagementservice/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-03-01-preview/apimanagementservice" ``` @@ -58,7 +59,7 @@ if err := client.BackupThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := apimanagementservice.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := apimanagementservice.ApiManagementServiceCheckNameAvailabilityParameters{ // ... @@ -124,7 +125,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apimanagementservice.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.GetDomainOwnershipIdentifier(ctx, id) if err != nil { @@ -156,7 +157,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apimanagementservice.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -173,7 +174,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apimanagementservice.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/apimanagement/2023-03-01-preview/deletedservice/README.md b/resource-manager/apimanagement/2023-03-01-preview/deletedservice/README.md index 3b4d1234b9c..e43a29da14e 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/deletedservice/README.md +++ b/resource-manager/apimanagement/2023-03-01-preview/deletedservice/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-03-01-preview/deletedservice" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deletedservice.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/apimanagement/2023-03-01-preview/skus/README.md b/resource-manager/apimanagement/2023-03-01-preview/skus/README.md index 763ca23bf94..3b0f4ecfc7f 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/skus/README.md +++ b/resource-manager/apimanagement/2023-03-01-preview/skus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-03-01-preview/skus" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := skus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ApiManagementSkusList(ctx, id)` can be used to do batched pagination items, err := client.ApiManagementSkusListComplete(ctx, id) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/README.md b/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/README.md index c7a1df53122..3b6306fa8d0 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/README.md +++ b/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice" ``` @@ -58,7 +59,7 @@ if err := client.BackupThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := apimanagementservice.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := apimanagementservice.ApiManagementServiceCheckNameAvailabilityParameters{ // ... @@ -124,7 +125,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apimanagementservice.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.GetDomainOwnershipIdentifier(ctx, id) if err != nil { @@ -156,7 +157,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apimanagementservice.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -173,7 +174,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apimanagementservice.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/apimanagement/2023-05-01-preview/deletedservice/README.md b/resource-manager/apimanagement/2023-05-01-preview/deletedservice/README.md index ed6908ea1fa..5d248459a0b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/deletedservice/README.md +++ b/resource-manager/apimanagement/2023-05-01-preview/deletedservice/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/deletedservice" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deletedservice.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/apimanagement/2023-05-01-preview/skus/README.md b/resource-manager/apimanagement/2023-05-01-preview/skus/README.md index 1112219aa20..1400b63d52c 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/skus/README.md +++ b/resource-manager/apimanagement/2023-05-01-preview/skus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/skus" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := skus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ApiManagementSkusList(ctx, id)` can be used to do batched pagination items, err := client.ApiManagementSkusListComplete(ctx, id) diff --git a/resource-manager/appconfiguration/2023-03-01/configurationstores/README.md b/resource-manager/appconfiguration/2023-03-01/configurationstores/README.md index bca0a6cc107..01c74d9151c 100644 --- a/resource-manager/appconfiguration/2023-03-01/configurationstores/README.md +++ b/resource-manager/appconfiguration/2023-03-01/configurationstores/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationstores.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := configurationstores.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/README.md b/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/README.md index 005ac8dd773..c15622387f1 100644 --- a/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/README.md +++ b/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deletedconfigurationstores.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ConfigurationStoresListDeleted(ctx, id)` can be used to do batched pagination items, err := client.ConfigurationStoresListDeletedComplete(ctx, id) diff --git a/resource-manager/appconfiguration/2023-03-01/operations/README.md b/resource-manager/appconfiguration/2023-03-01/operations/README.md index 92244b5914e..b921a61290e 100644 --- a/resource-manager/appconfiguration/2023-03-01/operations/README.md +++ b/resource-manager/appconfiguration/2023-03-01/operations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := operations.CheckNameAvailabilityParameters{ // ... diff --git a/resource-manager/applicationinsights/2015-05-01/componentsapis/README.md b/resource-manager/applicationinsights/2015-05-01/componentsapis/README.md index 5d4fc3aa210..46e474dbffa 100644 --- a/resource-manager/applicationinsights/2015-05-01/componentsapis/README.md +++ b/resource-manager/applicationinsights/2015-05-01/componentsapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentsapis" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := componentsapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ComponentsList(ctx, id)` can be used to do batched pagination items, err := client.ComponentsListComplete(ctx, id) @@ -110,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := componentsapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ComponentsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ComponentsListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/applicationinsights/2015-05-01/myworkbooksapis/README.md b/resource-manager/applicationinsights/2015-05-01/myworkbooksapis/README.md index a7e1c753684..0e8e9c97488 100644 --- a/resource-manager/applicationinsights/2015-05-01/myworkbooksapis/README.md +++ b/resource-manager/applicationinsights/2015-05-01/myworkbooksapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/myworkbooksapis" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := myworkbooksapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.MyWorkbooksListByResourceGroup(ctx, id, myworkbooksapis.DefaultMyWorkbooksListByResourceGroupOperationOptions()) if err != nil { @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := myworkbooksapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.MyWorkbooksListBySubscription(ctx, id, myworkbooksapis.DefaultMyWorkbooksListBySubscriptionOperationOptions()) if err != nil { diff --git a/resource-manager/applicationinsights/2015-05-01/webtestsapis/README.md b/resource-manager/applicationinsights/2015-05-01/webtestsapis/README.md index 076d2132b22..62768608c01 100644 --- a/resource-manager/applicationinsights/2015-05-01/webtestsapis/README.md +++ b/resource-manager/applicationinsights/2015-05-01/webtestsapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/webtestsapis" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webtestsapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.WebTestsList(ctx, id)` can be used to do batched pagination items, err := client.WebTestsListComplete(ctx, id) @@ -111,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webtestsapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.WebTestsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.WebTestsListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/applicationinsights/2015-05-01/workbooksapis/README.md b/resource-manager/applicationinsights/2015-05-01/workbooksapis/README.md index 9dfb84129eb..7d007e63656 100644 --- a/resource-manager/applicationinsights/2015-05-01/workbooksapis/README.md +++ b/resource-manager/applicationinsights/2015-05-01/workbooksapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/workbooksapis" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workbooksapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.WorkbooksListByResourceGroup(ctx, id, workbooksapis.DefaultWorkbooksListByResourceGroupOperationOptions()) if err != nil { diff --git a/resource-manager/applicationinsights/2020-02-02/componentsapis/README.md b/resource-manager/applicationinsights/2020-02-02/componentsapis/README.md index 395bcd28739..39f9fa5483c 100644 --- a/resource-manager/applicationinsights/2020-02-02/componentsapis/README.md +++ b/resource-manager/applicationinsights/2020-02-02/componentsapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := componentsapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ComponentsList(ctx, id)` can be used to do batched pagination items, err := client.ComponentsListComplete(ctx, id) @@ -110,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := componentsapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ComponentsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ComponentsListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/README.md b/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/README.md index 2d2720d57fa..77ba6f075fb 100644 --- a/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/README.md +++ b/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workbooktemplatesapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.WorkbookTemplatesListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/applicationinsights/2022-04-01/workbooksapis/README.md b/resource-manager/applicationinsights/2022-04-01/workbooksapis/README.md index bdccd2cb809..1a12dea582c 100644 --- a/resource-manager/applicationinsights/2022-04-01/workbooksapis/README.md +++ b/resource-manager/applicationinsights/2022-04-01/workbooksapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workbooksapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.WorkbooksListByResourceGroup(ctx, id, workbooksapis.DefaultWorkbooksListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.WorkbooksListByResourceGroupComplete(ctx, id, workbooksapis.DefaultWorkbooksListByResourceGroupOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workbooksapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.WorkbooksListBySubscription(ctx, id, workbooksapis.DefaultWorkbooksListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.WorkbooksListBySubscriptionComplete(ctx, id, workbooksapis.DefaultWorkbooksListBySubscriptionOperationOptions()) diff --git a/resource-manager/applicationinsights/2022-06-15/webtestsapis/README.md b/resource-manager/applicationinsights/2022-06-15/webtestsapis/README.md index ce8e80bb657..cec749062ad 100644 --- a/resource-manager/applicationinsights/2022-06-15/webtestsapis/README.md +++ b/resource-manager/applicationinsights/2022-06-15/webtestsapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webtestsapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.WebTestsList(ctx, id)` can be used to do batched pagination items, err := client.WebTestsListComplete(ctx, id) @@ -111,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webtestsapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.WebTestsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.WebTestsListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/applicationinsights/2023-06-01/workbooksapis/README.md b/resource-manager/applicationinsights/2023-06-01/workbooksapis/README.md index b0fe387f119..fc7d9e69216 100644 --- a/resource-manager/applicationinsights/2023-06-01/workbooksapis/README.md +++ b/resource-manager/applicationinsights/2023-06-01/workbooksapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2023-06-01/workbooksapis" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workbooksapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.WorkbooksListByResourceGroup(ctx, id, workbooksapis.DefaultWorkbooksListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.WorkbooksListByResourceGroupComplete(ctx, id, workbooksapis.DefaultWorkbooksListByResourceGroupOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workbooksapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.WorkbooksListBySubscription(ctx, id, workbooksapis.DefaultWorkbooksListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.WorkbooksListBySubscriptionComplete(ctx, id, workbooksapis.DefaultWorkbooksListBySubscriptionOperationOptions()) diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/README.md b/resource-manager/appplatform/2023-09-01-preview/appplatform/README.md index b59e9fb96b0..1bbd6c6887f 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/README.md +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2023-09-01-preview/appplatform" ``` @@ -131,7 +132,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ApiPortalsList(ctx, id)` can be used to do batched pagination items, err := client.ApiPortalsListComplete(ctx, id) @@ -214,7 +215,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ApmsList(ctx, id)` can be used to do batched pagination items, err := client.ApmsListComplete(ctx, id) @@ -292,7 +293,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ApplicationAcceleratorsList(ctx, id)` can be used to do batched pagination items, err := client.ApplicationAcceleratorsListComplete(ctx, id) @@ -354,7 +355,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ApplicationLiveViewsList(ctx, id)` can be used to do batched pagination items, err := client.ApplicationLiveViewsListComplete(ctx, id) @@ -432,7 +433,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.AppsList(ctx, id)` can be used to do batched pagination items, err := client.AppsListComplete(ctx, id) @@ -890,7 +891,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.BuildServiceListBuildServices(ctx, id)` can be used to do batched pagination items, err := client.BuildServiceListBuildServicesComplete(ctx, id) @@ -1018,7 +1019,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.BuildpackBindingListForCluster(ctx, id)` can be used to do batched pagination items, err := client.BuildpackBindingListForClusterComplete(ctx, id) @@ -1080,7 +1081,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.CertificatesList(ctx, id)` can be used to do batched pagination items, err := client.CertificatesListComplete(ctx, id) @@ -1097,7 +1098,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ConfigServersGet(ctx, id) if err != nil { @@ -1113,7 +1114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ConfigServerResource{ // ... @@ -1130,7 +1131,7 @@ if err := client.ConfigServersUpdatePatchThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ConfigServerResource{ // ... @@ -1147,7 +1148,7 @@ if err := client.ConfigServersUpdatePutThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ConfigServerSettings{ // ... @@ -1209,7 +1210,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ConfigurationServicesList(ctx, id)` can be used to do batched pagination items, err := client.ConfigurationServicesListComplete(ctx, id) @@ -1305,7 +1306,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ContainerRegistriesList(ctx, id)` can be used to do batched pagination items, err := client.ContainerRegistriesListComplete(ctx, id) @@ -1658,7 +1659,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.DeploymentsListForCluster(ctx, id, appplatform.DefaultDeploymentsListForClusterOperationOptions())` can be used to do batched pagination items, err := client.DeploymentsListForClusterComplete(ctx, id, appplatform.DefaultDeploymentsListForClusterOperationOptions()) @@ -1790,7 +1791,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.DevToolPortalsList(ctx, id)` can be used to do batched pagination items, err := client.DevToolPortalsListComplete(ctx, id) @@ -1807,7 +1808,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.EurekaServersGet(ctx, id) if err != nil { @@ -1823,7 +1824,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.EurekaServersList(ctx, id) if err != nil { @@ -1839,7 +1840,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.EurekaServerResource{ // ... @@ -1856,7 +1857,7 @@ if err := client.EurekaServersUpdatePatchThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.EurekaServerResource{ // ... @@ -2042,7 +2043,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.GatewaysList(ctx, id)` can be used to do batched pagination items, err := client.GatewaysListComplete(ctx, id) @@ -2125,7 +2126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.MonitoringSettingsGet(ctx, id) if err != nil { @@ -2141,7 +2142,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.MonitoringSettingResource{ // ... @@ -2158,7 +2159,7 @@ if err := client.MonitoringSettingsUpdatePatchThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.MonitoringSettingResource{ // ... @@ -2288,7 +2289,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ServiceRegistriesList(ctx, id)` can be used to do batched pagination items, err := client.ServiceRegistriesListComplete(ctx, id) @@ -2326,7 +2327,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ServiceResource{ // ... @@ -2343,7 +2344,7 @@ if err := client.ServicesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") if err := client.ServicesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -2355,7 +2356,7 @@ if err := client.ServicesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ApmReference{ // ... @@ -2372,7 +2373,7 @@ if err := client.ServicesDisableApmGloballyThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ServicesDisableTestEndpoint(ctx, id) if err != nil { @@ -2388,7 +2389,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ApmReference{ // ... @@ -2405,7 +2406,7 @@ if err := client.ServicesEnableApmGloballyThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ServicesEnableTestEndpoint(ctx, id) if err != nil { @@ -2421,7 +2422,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") if err := client.ServicesFlushVnetDnsSettingThenPoll(ctx, id); err != nil { // handle the error @@ -2433,7 +2434,7 @@ if err := client.ServicesFlushVnetDnsSettingThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ServicesGet(ctx, id) if err != nil { @@ -2449,7 +2450,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ServicesList(ctx, id)` can be used to do batched pagination items, err := client.ServicesListComplete(ctx, id) @@ -2466,7 +2467,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ServicesListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ServicesListBySubscriptionComplete(ctx, id) @@ -2483,7 +2484,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ServicesListGloballyEnabledApms(ctx, id) if err != nil { @@ -2499,7 +2500,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ServicesListSupportedApmTypes(ctx, id)` can be used to do batched pagination items, err := client.ServicesListSupportedApmTypesComplete(ctx, id) @@ -2516,7 +2517,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ServicesListSupportedServerVersions(ctx, id)` can be used to do batched pagination items, err := client.ServicesListSupportedServerVersionsComplete(ctx, id) @@ -2533,7 +2534,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ServicesListTestKeys(ctx, id) if err != nil { @@ -2549,7 +2550,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.RegenerateTestKeyRequestPayload{ // ... @@ -2570,7 +2571,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") if err := client.ServicesStartThenPoll(ctx, id); err != nil { // handle the error @@ -2582,7 +2583,7 @@ if err := client.ServicesStartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") if err := client.ServicesStopThenPoll(ctx, id); err != nil { // handle the error @@ -2594,7 +2595,7 @@ if err := client.ServicesStopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ServiceResource{ // ... @@ -2611,7 +2612,7 @@ if err := client.ServicesUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.SkusList(ctx, id)` can be used to do batched pagination items, err := client.SkusListComplete(ctx, id) @@ -2673,7 +2674,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.StoragesList(ctx, id)` can be used to do batched pagination items, err := client.StoragesListComplete(ctx, id) diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/README.md b/resource-manager/appplatform/2023-11-01-preview/appplatform/README.md index 74c11cae6ff..9fd96144826 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/README.md +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2023-11-01-preview/appplatform" ``` @@ -131,7 +132,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ApiPortalsList(ctx, id)` can be used to do batched pagination items, err := client.ApiPortalsListComplete(ctx, id) @@ -214,7 +215,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ApmsList(ctx, id)` can be used to do batched pagination items, err := client.ApmsListComplete(ctx, id) @@ -292,7 +293,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ApplicationAcceleratorsList(ctx, id)` can be used to do batched pagination items, err := client.ApplicationAcceleratorsListComplete(ctx, id) @@ -354,7 +355,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ApplicationLiveViewsList(ctx, id)` can be used to do batched pagination items, err := client.ApplicationLiveViewsListComplete(ctx, id) @@ -432,7 +433,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.AppsList(ctx, id)` can be used to do batched pagination items, err := client.AppsListComplete(ctx, id) @@ -890,7 +891,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.BuildServiceListBuildServices(ctx, id)` can be used to do batched pagination items, err := client.BuildServiceListBuildServicesComplete(ctx, id) @@ -1018,7 +1019,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.BuildpackBindingListForCluster(ctx, id)` can be used to do batched pagination items, err := client.BuildpackBindingListForClusterComplete(ctx, id) @@ -1080,7 +1081,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.CertificatesList(ctx, id)` can be used to do batched pagination items, err := client.CertificatesListComplete(ctx, id) @@ -1097,7 +1098,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ConfigServersGet(ctx, id) if err != nil { @@ -1113,7 +1114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ConfigServerResource{ // ... @@ -1130,7 +1131,7 @@ if err := client.ConfigServersUpdatePatchThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ConfigServerResource{ // ... @@ -1147,7 +1148,7 @@ if err := client.ConfigServersUpdatePutThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ConfigServerSettings{ // ... @@ -1209,7 +1210,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ConfigurationServicesList(ctx, id)` can be used to do batched pagination items, err := client.ConfigurationServicesListComplete(ctx, id) @@ -1305,7 +1306,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ContainerRegistriesList(ctx, id)` can be used to do batched pagination items, err := client.ContainerRegistriesListComplete(ctx, id) @@ -1658,7 +1659,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.DeploymentsListForCluster(ctx, id, appplatform.DefaultDeploymentsListForClusterOperationOptions())` can be used to do batched pagination items, err := client.DeploymentsListForClusterComplete(ctx, id, appplatform.DefaultDeploymentsListForClusterOperationOptions()) @@ -1790,7 +1791,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.DevToolPortalsList(ctx, id)` can be used to do batched pagination items, err := client.DevToolPortalsListComplete(ctx, id) @@ -1807,7 +1808,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.EurekaServersGet(ctx, id) if err != nil { @@ -1823,7 +1824,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.EurekaServersList(ctx, id) if err != nil { @@ -1839,7 +1840,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.EurekaServerResource{ // ... @@ -1856,7 +1857,7 @@ if err := client.EurekaServersUpdatePatchThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.EurekaServerResource{ // ... @@ -2042,7 +2043,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.GatewaysList(ctx, id)` can be used to do batched pagination items, err := client.GatewaysListComplete(ctx, id) @@ -2125,7 +2126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.MonitoringSettingsGet(ctx, id) if err != nil { @@ -2141,7 +2142,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.MonitoringSettingResource{ // ... @@ -2158,7 +2159,7 @@ if err := client.MonitoringSettingsUpdatePatchThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.MonitoringSettingResource{ // ... @@ -2288,7 +2289,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ServiceRegistriesList(ctx, id)` can be used to do batched pagination items, err := client.ServiceRegistriesListComplete(ctx, id) @@ -2326,7 +2327,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ServiceResource{ // ... @@ -2343,7 +2344,7 @@ if err := client.ServicesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") if err := client.ServicesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -2355,7 +2356,7 @@ if err := client.ServicesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ApmReference{ // ... @@ -2372,7 +2373,7 @@ if err := client.ServicesDisableApmGloballyThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ServicesDisableTestEndpoint(ctx, id) if err != nil { @@ -2388,7 +2389,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ApmReference{ // ... @@ -2405,7 +2406,7 @@ if err := client.ServicesEnableApmGloballyThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ServicesEnableTestEndpoint(ctx, id) if err != nil { @@ -2421,7 +2422,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") if err := client.ServicesFlushVnetDnsSettingThenPoll(ctx, id); err != nil { // handle the error @@ -2433,7 +2434,7 @@ if err := client.ServicesFlushVnetDnsSettingThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ServicesGet(ctx, id) if err != nil { @@ -2449,7 +2450,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ServicesList(ctx, id)` can be used to do batched pagination items, err := client.ServicesListComplete(ctx, id) @@ -2466,7 +2467,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ServicesListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ServicesListBySubscriptionComplete(ctx, id) @@ -2483,7 +2484,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ServicesListGloballyEnabledApms(ctx, id) if err != nil { @@ -2499,7 +2500,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ServicesListSupportedApmTypes(ctx, id)` can be used to do batched pagination items, err := client.ServicesListSupportedApmTypesComplete(ctx, id) @@ -2516,7 +2517,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ServicesListSupportedServerVersions(ctx, id)` can be used to do batched pagination items, err := client.ServicesListSupportedServerVersionsComplete(ctx, id) @@ -2533,7 +2534,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ServicesListTestKeys(ctx, id) if err != nil { @@ -2549,7 +2550,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.RegenerateTestKeyRequestPayload{ // ... @@ -2570,7 +2571,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") if err := client.ServicesStartThenPoll(ctx, id); err != nil { // handle the error @@ -2582,7 +2583,7 @@ if err := client.ServicesStartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") if err := client.ServicesStopThenPoll(ctx, id); err != nil { // handle the error @@ -2594,7 +2595,7 @@ if err := client.ServicesStopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ServiceResource{ // ... @@ -2611,7 +2612,7 @@ if err := client.ServicesUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.SkusList(ctx, id)` can be used to do batched pagination items, err := client.SkusListComplete(ctx, id) @@ -2673,7 +2674,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.StoragesList(ctx, id)` can be used to do batched pagination items, err := client.StoragesListComplete(ctx, id) diff --git a/resource-manager/appplatform/2023-12-01/appplatform/README.md b/resource-manager/appplatform/2023-12-01/appplatform/README.md index 795119a353b..0f0b5a5f926 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/README.md +++ b/resource-manager/appplatform/2023-12-01/appplatform/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2023-12-01/appplatform" ``` @@ -131,7 +132,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ApiPortalsList(ctx, id)` can be used to do batched pagination items, err := client.ApiPortalsListComplete(ctx, id) @@ -214,7 +215,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ApmsList(ctx, id)` can be used to do batched pagination items, err := client.ApmsListComplete(ctx, id) @@ -292,7 +293,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ApplicationAcceleratorsList(ctx, id)` can be used to do batched pagination items, err := client.ApplicationAcceleratorsListComplete(ctx, id) @@ -354,7 +355,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ApplicationLiveViewsList(ctx, id)` can be used to do batched pagination items, err := client.ApplicationLiveViewsListComplete(ctx, id) @@ -432,7 +433,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.AppsList(ctx, id)` can be used to do batched pagination items, err := client.AppsListComplete(ctx, id) @@ -890,7 +891,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.BuildServiceListBuildServices(ctx, id)` can be used to do batched pagination items, err := client.BuildServiceListBuildServicesComplete(ctx, id) @@ -1018,7 +1019,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.BuildpackBindingListForCluster(ctx, id)` can be used to do batched pagination items, err := client.BuildpackBindingListForClusterComplete(ctx, id) @@ -1080,7 +1081,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.CertificatesList(ctx, id)` can be used to do batched pagination items, err := client.CertificatesListComplete(ctx, id) @@ -1097,7 +1098,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ConfigServersGet(ctx, id) if err != nil { @@ -1113,7 +1114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ConfigServerResource{ // ... @@ -1130,7 +1131,7 @@ if err := client.ConfigServersUpdatePatchThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ConfigServerResource{ // ... @@ -1147,7 +1148,7 @@ if err := client.ConfigServersUpdatePutThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ConfigServerSettings{ // ... @@ -1209,7 +1210,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ConfigurationServicesList(ctx, id)` can be used to do batched pagination items, err := client.ConfigurationServicesListComplete(ctx, id) @@ -1305,7 +1306,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ContainerRegistriesList(ctx, id)` can be used to do batched pagination items, err := client.ContainerRegistriesListComplete(ctx, id) @@ -1654,7 +1655,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.DeploymentsListForCluster(ctx, id, appplatform.DefaultDeploymentsListForClusterOperationOptions())` can be used to do batched pagination items, err := client.DeploymentsListForClusterComplete(ctx, id, appplatform.DefaultDeploymentsListForClusterOperationOptions()) @@ -1786,7 +1787,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.DevToolPortalsList(ctx, id)` can be used to do batched pagination items, err := client.DevToolPortalsListComplete(ctx, id) @@ -1972,7 +1973,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.GatewaysList(ctx, id)` can be used to do batched pagination items, err := client.GatewaysListComplete(ctx, id) @@ -2038,7 +2039,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.MonitoringSettingsGet(ctx, id) if err != nil { @@ -2054,7 +2055,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.MonitoringSettingResource{ // ... @@ -2071,7 +2072,7 @@ if err := client.MonitoringSettingsUpdatePatchThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.MonitoringSettingResource{ // ... @@ -2201,7 +2202,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ServiceRegistriesList(ctx, id)` can be used to do batched pagination items, err := client.ServiceRegistriesListComplete(ctx, id) @@ -2239,7 +2240,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ServiceResource{ // ... @@ -2256,7 +2257,7 @@ if err := client.ServicesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") if err := client.ServicesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -2268,7 +2269,7 @@ if err := client.ServicesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ApmReference{ // ... @@ -2285,7 +2286,7 @@ if err := client.ServicesDisableApmGloballyThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ServicesDisableTestEndpoint(ctx, id) if err != nil { @@ -2301,7 +2302,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ApmReference{ // ... @@ -2318,7 +2319,7 @@ if err := client.ServicesEnableApmGloballyThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ServicesEnableTestEndpoint(ctx, id) if err != nil { @@ -2334,7 +2335,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") if err := client.ServicesFlushVnetDnsSettingThenPoll(ctx, id); err != nil { // handle the error @@ -2346,7 +2347,7 @@ if err := client.ServicesFlushVnetDnsSettingThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ServicesGet(ctx, id) if err != nil { @@ -2362,7 +2363,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ServicesList(ctx, id)` can be used to do batched pagination items, err := client.ServicesListComplete(ctx, id) @@ -2379,7 +2380,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ServicesListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ServicesListBySubscriptionComplete(ctx, id) @@ -2396,7 +2397,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ServicesListGloballyEnabledApms(ctx, id) if err != nil { @@ -2412,7 +2413,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ServicesListSupportedApmTypes(ctx, id)` can be used to do batched pagination items, err := client.ServicesListSupportedApmTypesComplete(ctx, id) @@ -2429,7 +2430,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.ServicesListSupportedServerVersions(ctx, id)` can be used to do batched pagination items, err := client.ServicesListSupportedServerVersionsComplete(ctx, id) @@ -2446,7 +2447,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") read, err := client.ServicesListTestKeys(ctx, id) if err != nil { @@ -2462,7 +2463,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.RegenerateTestKeyRequestPayload{ // ... @@ -2483,7 +2484,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") if err := client.ServicesStartThenPoll(ctx, id); err != nil { // handle the error @@ -2495,7 +2496,7 @@ if err := client.ServicesStartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") if err := client.ServicesStopThenPoll(ctx, id); err != nil { // handle the error @@ -2507,7 +2508,7 @@ if err := client.ServicesStopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") payload := appplatform.ServiceResource{ // ... @@ -2524,7 +2525,7 @@ if err := client.ServicesUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.SkusList(ctx, id)` can be used to do batched pagination items, err := client.SkusListComplete(ctx, id) @@ -2586,7 +2587,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") // alternatively `client.StoragesList(ctx, id)` can be used to do batched pagination items, err := client.StoragesListComplete(ctx, id) diff --git a/resource-manager/attestation/2020-10-01/attestationproviders/README.md b/resource-manager/attestation/2020-10-01/attestationproviders/README.md index 53395e77eb4..91c89c45856 100644 --- a/resource-manager/attestation/2020-10-01/attestationproviders/README.md +++ b/resource-manager/attestation/2020-10-01/attestationproviders/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := attestationproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -109,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := attestationproviders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -125,7 +126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := attestationproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListDefault(ctx, id) if err != nil { diff --git a/resource-manager/attestation/2021-06-01/attestationproviders/README.md b/resource-manager/attestation/2021-06-01/attestationproviders/README.md index 2758bdda3ec..6d360fe8c6a 100644 --- a/resource-manager/attestation/2021-06-01/attestationproviders/README.md +++ b/resource-manager/attestation/2021-06-01/attestationproviders/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2021-06-01/attestationproviders" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := attestationproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -109,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := attestationproviders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -125,7 +126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := attestationproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListDefault(ctx, id) if err != nil { diff --git a/resource-manager/authorization/2018-01-01-preview/permissions/README.md b/resource-manager/authorization/2018-01-01-preview/permissions/README.md index 45246b3448e..d3655e9a774 100644 --- a/resource-manager/authorization/2018-01-01-preview/permissions/README.md +++ b/resource-manager/authorization/2018-01-01-preview/permissions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2018-01-01-preview/permissions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := permissions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForResource(ctx, id)` can be used to do batched pagination items, err := client.ListForResourceComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := permissions.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListForResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListForResourceGroupComplete(ctx, id) diff --git a/resource-manager/authorization/2018-01-01-preview/roleassignments/README.md b/resource-manager/authorization/2018-01-01-preview/roleassignments/README.md index c18c7a7fbf4..6b0d1486288 100644 --- a/resource-manager/authorization/2018-01-01-preview/roleassignments/README.md +++ b/resource-manager/authorization/2018-01-01-preview/roleassignments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2018-01-01-preview/roleassignments" ``` @@ -130,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleassignments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, roleassignments.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, roleassignments.DefaultListOperationOptions()) @@ -147,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := roleassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForResource(ctx, id, roleassignments.DefaultListForResourceOperationOptions())` can be used to do batched pagination items, err := client.ListForResourceComplete(ctx, id, roleassignments.DefaultListForResourceOperationOptions()) @@ -164,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := roleassignments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListForResourceGroup(ctx, id, roleassignments.DefaultListForResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListForResourceGroupComplete(ctx, id, roleassignments.DefaultListForResourceGroupOperationOptions()) @@ -181,7 +182,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := roleassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForScope(ctx, id, roleassignments.DefaultListForScopeOperationOptions())` can be used to do batched pagination items, err := client.ListForScopeComplete(ctx, id, roleassignments.DefaultListForScopeOperationOptions()) diff --git a/resource-manager/authorization/2018-01-01-preview/roledefinitions/README.md b/resource-manager/authorization/2018-01-01-preview/roledefinitions/README.md index b4935c0a511..8e80229f3d7 100644 --- a/resource-manager/authorization/2018-01-01-preview/roledefinitions/README.md +++ b/resource-manager/authorization/2018-01-01-preview/roledefinitions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2018-01-01-preview/roledefinitions" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roledefinitions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, roledefinitions.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, roledefinitions.DefaultListOperationOptions()) diff --git a/resource-manager/authorization/2020-04-01-preview/roleassignments/README.md b/resource-manager/authorization/2020-04-01-preview/roleassignments/README.md index e0d398c47e5..93a87a9349a 100644 --- a/resource-manager/authorization/2020-04-01-preview/roleassignments/README.md +++ b/resource-manager/authorization/2020-04-01-preview/roleassignments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-04-01-preview/roleassignments" ``` @@ -130,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleassignments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, roleassignments.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, roleassignments.DefaultListOperationOptions()) @@ -147,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := roleassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForResource(ctx, id, roleassignments.DefaultListForResourceOperationOptions())` can be used to do batched pagination items, err := client.ListForResourceComplete(ctx, id, roleassignments.DefaultListForResourceOperationOptions()) @@ -164,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := roleassignments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListForResourceGroup(ctx, id, roleassignments.DefaultListForResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListForResourceGroupComplete(ctx, id, roleassignments.DefaultListForResourceGroupOperationOptions()) @@ -181,7 +182,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := roleassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForScope(ctx, id, roleassignments.DefaultListForScopeOperationOptions())` can be used to do batched pagination items, err := client.ListForScopeComplete(ctx, id, roleassignments.DefaultListForScopeOperationOptions()) diff --git a/resource-manager/authorization/2020-10-01/eligiblechildresources/README.md b/resource-manager/authorization/2020-10-01/eligiblechildresources/README.md index 65c87b3319e..2b2cdc2737e 100644 --- a/resource-manager/authorization/2020-10-01/eligiblechildresources/README.md +++ b/resource-manager/authorization/2020-10-01/eligiblechildresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/eligiblechildresources" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := eligiblechildresources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.Get(ctx, id, eligiblechildresources.DefaultGetOperationOptions())` can be used to do batched pagination items, err := client.GetComplete(ctx, id, eligiblechildresources.DefaultGetOperationOptions()) diff --git a/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/README.md b/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/README.md index ee23b39544c..11c51425629 100644 --- a/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/README.md +++ b/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleassignmentscheduleinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForScope(ctx, id, roleassignmentscheduleinstances.DefaultListForScopeOperationOptions())` can be used to do batched pagination items, err := client.ListForScopeComplete(ctx, id, roleassignmentscheduleinstances.DefaultListForScopeOperationOptions()) diff --git a/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/README.md b/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/README.md index cdefa5a433c..238258782cf 100644 --- a/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/README.md +++ b/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleassignmentschedulerequests.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForScope(ctx, id, roleassignmentschedulerequests.DefaultListForScopeOperationOptions())` can be used to do batched pagination items, err := client.ListForScopeComplete(ctx, id, roleassignmentschedulerequests.DefaultListForScopeOperationOptions()) diff --git a/resource-manager/authorization/2020-10-01/roleassignmentschedules/README.md b/resource-manager/authorization/2020-10-01/roleassignmentschedules/README.md index b0c73b3d248..5b1cf904028 100644 --- a/resource-manager/authorization/2020-10-01/roleassignmentschedules/README.md +++ b/resource-manager/authorization/2020-10-01/roleassignmentschedules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleassignmentschedules.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForScope(ctx, id, roleassignmentschedules.DefaultListForScopeOperationOptions())` can be used to do batched pagination items, err := client.ListForScopeComplete(ctx, id, roleassignmentschedules.DefaultListForScopeOperationOptions()) diff --git a/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/README.md b/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/README.md index 3dc3dbff7bf..9709ec1d8ec 100644 --- a/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/README.md +++ b/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleeligibilityscheduleinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForScope(ctx, id, roleeligibilityscheduleinstances.DefaultListForScopeOperationOptions())` can be used to do batched pagination items, err := client.ListForScopeComplete(ctx, id, roleeligibilityscheduleinstances.DefaultListForScopeOperationOptions()) diff --git a/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/README.md b/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/README.md index 3e1ea6b805f..cc79d4ca7ce 100644 --- a/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/README.md +++ b/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleeligibilityschedulerequests.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForScope(ctx, id, roleeligibilityschedulerequests.DefaultListForScopeOperationOptions())` can be used to do batched pagination items, err := client.ListForScopeComplete(ctx, id, roleeligibilityschedulerequests.DefaultListForScopeOperationOptions()) diff --git a/resource-manager/authorization/2020-10-01/roleeligibilityschedules/README.md b/resource-manager/authorization/2020-10-01/roleeligibilityschedules/README.md index 764053979e4..cfa586977d8 100644 --- a/resource-manager/authorization/2020-10-01/roleeligibilityschedules/README.md +++ b/resource-manager/authorization/2020-10-01/roleeligibilityschedules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleeligibilityschedules.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForScope(ctx, id, roleeligibilityschedules.DefaultListForScopeOperationOptions())` can be used to do batched pagination items, err := client.ListForScopeComplete(ctx, id, roleeligibilityschedules.DefaultListForScopeOperationOptions()) diff --git a/resource-manager/authorization/2020-10-01/rolemanagementpolicies/README.md b/resource-manager/authorization/2020-10-01/rolemanagementpolicies/README.md index bac83c3fe3f..1727ff6c07a 100644 --- a/resource-manager/authorization/2020-10-01/rolemanagementpolicies/README.md +++ b/resource-manager/authorization/2020-10-01/rolemanagementpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies" ``` @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := rolemanagementpolicies.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForScope(ctx, id, rolemanagementpolicies.DefaultListForScopeOperationOptions())` can be used to do batched pagination items, err := client.ListForScopeComplete(ctx, id, rolemanagementpolicies.DefaultListForScopeOperationOptions()) diff --git a/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/README.md b/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/README.md index ca7d1f1f6e8..07508baf38e 100644 --- a/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/README.md +++ b/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := rolemanagementpolicyassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForScope(ctx, id)` can be used to do batched pagination items, err := client.ListForScopeComplete(ctx, id) diff --git a/resource-manager/authorization/2022-04-01/denyassignments/README.md b/resource-manager/authorization/2022-04-01/denyassignments/README.md index 56ef415da0c..450d403a148 100644 --- a/resource-manager/authorization/2022-04-01/denyassignments/README.md +++ b/resource-manager/authorization/2022-04-01/denyassignments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/denyassignments" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := denyassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.GetById(ctx, id) if err != nil { @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := denyassignments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, denyassignments.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, denyassignments.DefaultListOperationOptions()) @@ -73,7 +74,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := denyassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForResource(ctx, id, denyassignments.DefaultListForResourceOperationOptions())` can be used to do batched pagination items, err := client.ListForResourceComplete(ctx, id, denyassignments.DefaultListForResourceOperationOptions()) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := denyassignments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListForResourceGroup(ctx, id, denyassignments.DefaultListForResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListForResourceGroupComplete(ctx, id, denyassignments.DefaultListForResourceGroupOperationOptions()) @@ -107,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := denyassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForScope(ctx, id, denyassignments.DefaultListForScopeOperationOptions())` can be used to do batched pagination items, err := client.ListForScopeComplete(ctx, id, denyassignments.DefaultListForScopeOperationOptions()) diff --git a/resource-manager/authorization/2022-04-01/permissions/README.md b/resource-manager/authorization/2022-04-01/permissions/README.md index 62fcc8aac7f..fd1ea53e4b2 100644 --- a/resource-manager/authorization/2022-04-01/permissions/README.md +++ b/resource-manager/authorization/2022-04-01/permissions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/permissions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := permissions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForResource(ctx, id)` can be used to do batched pagination items, err := client.ListForResourceComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := permissions.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListForResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListForResourceGroupComplete(ctx, id) diff --git a/resource-manager/authorization/2022-04-01/roleassignments/README.md b/resource-manager/authorization/2022-04-01/roleassignments/README.md index 72da5521d1d..a1f9f4cc564 100644 --- a/resource-manager/authorization/2022-04-01/roleassignments/README.md +++ b/resource-manager/authorization/2022-04-01/roleassignments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments" ``` @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := roleassignments.RoleAssignmentCreateParameters{ // ... @@ -82,7 +83,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.DeleteById(ctx, id, roleassignments.DefaultDeleteByIdOperationOptions()) if err != nil { @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.GetById(ctx, id, roleassignments.DefaultGetByIdOperationOptions()) if err != nil { @@ -130,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForResource(ctx, id, roleassignments.DefaultListForResourceOperationOptions())` can be used to do batched pagination items, err := client.ListForResourceComplete(ctx, id, roleassignments.DefaultListForResourceOperationOptions()) @@ -147,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := roleassignments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListForResourceGroup(ctx, id, roleassignments.DefaultListForResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListForResourceGroupComplete(ctx, id, roleassignments.DefaultListForResourceGroupOperationOptions()) @@ -164,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := roleassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForScope(ctx, id, roleassignments.DefaultListForScopeOperationOptions())` can be used to do batched pagination items, err := client.ListForScopeComplete(ctx, id, roleassignments.DefaultListForScopeOperationOptions()) @@ -181,7 +182,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := roleassignments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListForSubscription(ctx, id, roleassignments.DefaultListForSubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListForSubscriptionComplete(ctx, id, roleassignments.DefaultListForSubscriptionOperationOptions()) diff --git a/resource-manager/authorization/2022-04-01/roledefinitions/README.md b/resource-manager/authorization/2022-04-01/roledefinitions/README.md index 944f61e3b29..de878df96ec 100644 --- a/resource-manager/authorization/2022-04-01/roledefinitions/README.md +++ b/resource-manager/authorization/2022-04-01/roledefinitions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roledefinitions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, roledefinitions.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, roledefinitions.DefaultListOperationOptions()) diff --git a/resource-manager/authorization/2022-05-01-preview/permissions/README.md b/resource-manager/authorization/2022-05-01-preview/permissions/README.md index 43a38ff990e..dd431ff5d2b 100644 --- a/resource-manager/authorization/2022-05-01-preview/permissions/README.md +++ b/resource-manager/authorization/2022-05-01-preview/permissions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/permissions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := permissions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForResource(ctx, id)` can be used to do batched pagination items, err := client.ListForResourceComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := permissions.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListForResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListForResourceGroupComplete(ctx, id) diff --git a/resource-manager/authorization/2022-05-01-preview/roledefinitions/README.md b/resource-manager/authorization/2022-05-01-preview/roledefinitions/README.md index 03fb5af10b5..78baf074c64 100644 --- a/resource-manager/authorization/2022-05-01-preview/roledefinitions/README.md +++ b/resource-manager/authorization/2022-05-01-preview/roledefinitions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roledefinitions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, roledefinitions.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, roledefinitions.DefaultListOperationOptions()) diff --git a/resource-manager/automanage/2022-05-04/configurationprofileassignments/README.md b/resource-manager/automanage/2022-05-04/configurationprofileassignments/README.md index 03ac4ca2dd2..57a737436b6 100644 --- a/resource-manager/automanage/2022-05-04/configurationprofileassignments/README.md +++ b/resource-manager/automanage/2022-05-04/configurationprofileassignments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofileassignments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.List(ctx, id) if err != nil { @@ -125,7 +126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofileassignments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/automanage/2022-05-04/configurationprofiles/README.md b/resource-manager/automanage/2022-05-04/configurationprofiles/README.md index a079c901747..3e16422c48b 100644 --- a/resource-manager/automanage/2022-05-04/configurationprofiles/README.md +++ b/resource-manager/automanage/2022-05-04/configurationprofiles/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofiles.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofiles.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/automanage/2022-05-04/serviceprincipals/README.md b/resource-manager/automanage/2022-05-04/serviceprincipals/README.md index a4a96fbec2a..723f7984482 100644 --- a/resource-manager/automanage/2022-05-04/serviceprincipals/README.md +++ b/resource-manager/automanage/2022-05-04/serviceprincipals/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/serviceprincipals" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serviceprincipals.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serviceprincipals.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/automation/2015-10-31/automationaccount/README.md b/resource-manager/automation/2015-10-31/automationaccount/README.md index d6e6ad4a99c..2548e707935 100644 --- a/resource-manager/automation/2015-10-31/automationaccount/README.md +++ b/resource-manager/automation/2015-10-31/automationaccount/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/automationaccount" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automationaccount.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := automationaccount.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/automation/2015-10-31/dsccompilationjob/README.md b/resource-manager/automation/2015-10-31/dsccompilationjob/README.md index 47ad3375e39..a20921b8bc9 100644 --- a/resource-manager/automation/2015-10-31/dsccompilationjob/README.md +++ b/resource-manager/automation/2015-10-31/dsccompilationjob/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/dsccompilationjob" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dsccompilationjob.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") +id := commonids.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") payload := dsccompilationjob.DscCompilationJobCreateParameters{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dsccompilationjob.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") +id := commonids.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") read, err := client.Get(ctx, id) if err != nil { @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dsccompilationjob.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") +id := commonids.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") read, err := client.StreamListByJob(ctx, id) if err != nil { diff --git a/resource-manager/automation/2019-06-01/automationaccount/README.md b/resource-manager/automation/2019-06-01/automationaccount/README.md index a708c9e92d8..d80303ed324 100644 --- a/resource-manager/automation/2019-06-01/automationaccount/README.md +++ b/resource-manager/automation/2019-06-01/automationaccount/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/automationaccount" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automationaccount.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := automationaccount.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/automation/2019-06-01/dsccompilationjob/README.md b/resource-manager/automation/2019-06-01/dsccompilationjob/README.md index 1ab6155734a..bc822cf54c3 100644 --- a/resource-manager/automation/2019-06-01/dsccompilationjob/README.md +++ b/resource-manager/automation/2019-06-01/dsccompilationjob/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/dsccompilationjob" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dsccompilationjob.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") +id := commonids.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") payload := dsccompilationjob.DscCompilationJobCreateParameters{ // ... @@ -41,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := dsccompilationjob.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") +id := commonids.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") read, err := client.Get(ctx, id) if err != nil { @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dsccompilationjob.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") +id := commonids.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") read, err := client.StreamListByJob(ctx, id) if err != nil { diff --git a/resource-manager/automation/2020-01-13-preview/automationaccount/README.md b/resource-manager/automation/2020-01-13-preview/automationaccount/README.md index 9a9a6f8b48e..eaa9d0c05b6 100644 --- a/resource-manager/automation/2020-01-13-preview/automationaccount/README.md +++ b/resource-manager/automation/2020-01-13-preview/automationaccount/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/automationaccount" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automationaccount.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := automationaccount.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/automation/2020-01-13-preview/dsccompilationjob/README.md b/resource-manager/automation/2020-01-13-preview/dsccompilationjob/README.md index d587d749bc4..fac5fa7a0e7 100644 --- a/resource-manager/automation/2020-01-13-preview/dsccompilationjob/README.md +++ b/resource-manager/automation/2020-01-13-preview/dsccompilationjob/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/dsccompilationjob" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dsccompilationjob.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") +id := commonids.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") payload := dsccompilationjob.DscCompilationJobCreateParameters{ // ... @@ -41,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := dsccompilationjob.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") +id := commonids.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") read, err := client.Get(ctx, id) if err != nil { @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dsccompilationjob.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") +id := commonids.NewAutomationCompilationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "compilationJobIdValue") read, err := client.StreamListByJob(ctx, id) if err != nil { diff --git a/resource-manager/automation/2021-06-22/automationaccount/README.md b/resource-manager/automation/2021-06-22/automationaccount/README.md index f0e30e273d5..a004edd024f 100644 --- a/resource-manager/automation/2021-06-22/automationaccount/README.md +++ b/resource-manager/automation/2021-06-22/automationaccount/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2021-06-22/automationaccount" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automationaccount.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := automationaccount.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/automation/2022-08-08/automationaccount/README.md b/resource-manager/automation/2022-08-08/automationaccount/README.md index a7d1240c557..2636966ab09 100644 --- a/resource-manager/automation/2022-08-08/automationaccount/README.md +++ b/resource-manager/automation/2022-08-08/automationaccount/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automationaccount.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := automationaccount.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/automation/2023-11-01/automationaccount/README.md b/resource-manager/automation/2023-11-01/automationaccount/README.md index 12a1739a9f2..484b7024bd1 100644 --- a/resource-manager/automation/2023-11-01/automationaccount/README.md +++ b/resource-manager/automation/2023-11-01/automationaccount/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automationaccount.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := automationaccount.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/azureactivedirectory/2020-03-01/privatelinkforazuread/README.md b/resource-manager/azureactivedirectory/2020-03-01/privatelinkforazuread/README.md index 7dc92285f6c..9be3faa22da 100644 --- a/resource-manager/azureactivedirectory/2020-03-01/privatelinkforazuread/README.md +++ b/resource-manager/azureactivedirectory/2020-03-01/privatelinkforazuread/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2020-03-01/privatelinkforazuread" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkforazuread.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkforazuread.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/azurestackhci/2023-08-01/clusters/README.md b/resource-manager/azurestackhci/2023-08-01/clusters/README.md index 0a23a222273..57d4c0da981 100644 --- a/resource-manager/azurestackhci/2023-08-01/clusters/README.md +++ b/resource-manager/azurestackhci/2023-08-01/clusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2023-08-01/clusters" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/azurestackhci/2023-09-01-preview/galleryimages/README.md b/resource-manager/azurestackhci/2023-09-01-preview/galleryimages/README.md index 36dfac2652a..3b6082bbe21 100644 --- a/resource-manager/azurestackhci/2023-09-01-preview/galleryimages/README.md +++ b/resource-manager/azurestackhci/2023-09-01-preview/galleryimages/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2023-09-01-preview/galleryimages" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := galleryimages.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := galleryimages.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/azurestackhci/2023-09-01-preview/guestagents/README.md b/resource-manager/azurestackhci/2023-09-01-preview/guestagents/README.md index c67cce140ec..84853f78950 100644 --- a/resource-manager/azurestackhci/2023-09-01-preview/guestagents/README.md +++ b/resource-manager/azurestackhci/2023-09-01-preview/guestagents/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2023-09-01-preview/guestagents" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := guestagents.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := guestagents.GuestAgent{ // ... @@ -41,7 +42,7 @@ if err := client.GuestAgentCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := guestagents.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.GuestAgentDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.GuestAgentDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := guestagents.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.GuestAgentGet(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := guestagents.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/azurestackhci/2023-09-01-preview/hybrididentitymetadata/README.md b/resource-manager/azurestackhci/2023-09-01-preview/hybrididentitymetadata/README.md index 51f4a76db7b..1e40328c6f5 100644 --- a/resource-manager/azurestackhci/2023-09-01-preview/hybrididentitymetadata/README.md +++ b/resource-manager/azurestackhci/2023-09-01-preview/hybrididentitymetadata/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2023-09-01-preview/hybrididentitymetadata" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := hybrididentitymetadata.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hybrididentitymetadata.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/azurestackhci/2023-09-01-preview/logicalnetworks/README.md b/resource-manager/azurestackhci/2023-09-01-preview/logicalnetworks/README.md index 1fa190d1bd6..30a5036274a 100644 --- a/resource-manager/azurestackhci/2023-09-01-preview/logicalnetworks/README.md +++ b/resource-manager/azurestackhci/2023-09-01-preview/logicalnetworks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2023-09-01-preview/logicalnetworks" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := logicalnetworks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := logicalnetworks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/azurestackhci/2023-09-01-preview/marketplacegalleryimages/README.md b/resource-manager/azurestackhci/2023-09-01-preview/marketplacegalleryimages/README.md index ec18443f3ee..6efed4cd832 100644 --- a/resource-manager/azurestackhci/2023-09-01-preview/marketplacegalleryimages/README.md +++ b/resource-manager/azurestackhci/2023-09-01-preview/marketplacegalleryimages/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2023-09-01-preview/marketplacegalleryimages" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := marketplacegalleryimages.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := marketplacegalleryimages.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/azurestackhci/2023-09-01-preview/networkinterfaces/README.md b/resource-manager/azurestackhci/2023-09-01-preview/networkinterfaces/README.md index 4054314e3fe..0bad09ceef3 100644 --- a/resource-manager/azurestackhci/2023-09-01-preview/networkinterfaces/README.md +++ b/resource-manager/azurestackhci/2023-09-01-preview/networkinterfaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2023-09-01-preview/networkinterfaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/azurestackhci/2023-09-01-preview/storagecontainers/README.md b/resource-manager/azurestackhci/2023-09-01-preview/storagecontainers/README.md index e89035a1741..2ec1710f22d 100644 --- a/resource-manager/azurestackhci/2023-09-01-preview/storagecontainers/README.md +++ b/resource-manager/azurestackhci/2023-09-01-preview/storagecontainers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2023-09-01-preview/storagecontainers" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storagecontainers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := storagecontainers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/azurestackhci/2023-09-01-preview/virtualharddisks/README.md b/resource-manager/azurestackhci/2023-09-01-preview/virtualharddisks/README.md index 2989881c563..89d9a4b7947 100644 --- a/resource-manager/azurestackhci/2023-09-01-preview/virtualharddisks/README.md +++ b/resource-manager/azurestackhci/2023-09-01-preview/virtualharddisks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2023-09-01-preview/virtualharddisks" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualharddisks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualharddisks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/azurestackhci/2023-09-01-preview/virtualmachineinstances/README.md b/resource-manager/azurestackhci/2023-09-01-preview/virtualmachineinstances/README.md index 5339fd02b60..15103c2b522 100644 --- a/resource-manager/azurestackhci/2023-09-01-preview/virtualmachineinstances/README.md +++ b/resource-manager/azurestackhci/2023-09-01-preview/virtualmachineinstances/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2023-09-01-preview/virtualmachineinstances" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := virtualmachineinstances.VirtualMachineInstance{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.RestartThenPoll(ctx, id); err != nil { // handle the error @@ -98,7 +99,7 @@ if err := client.RestartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -110,7 +111,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -122,7 +123,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := virtualmachineinstances.VirtualMachineInstanceUpdateRequest{ // ... diff --git a/resource-manager/batch/2023-05-01/batchaccount/README.md b/resource-manager/batch/2023-05-01/batchaccount/README.md index a017fd8a89f..44d1e2c9071 100644 --- a/resource-manager/batch/2023-05-01/batchaccount/README.md +++ b/resource-manager/batch/2023-05-01/batchaccount/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount" ``` @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := batchaccount.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -102,7 +103,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := batchaccount.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/batch/2023-11-01/batchaccount/README.md b/resource-manager/batch/2023-11-01/batchaccount/README.md index 445725ab896..044d3cc36b6 100644 --- a/resource-manager/batch/2023-11-01/batchaccount/README.md +++ b/resource-manager/batch/2023-11-01/batchaccount/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-11-01/batchaccount" ``` @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := batchaccount.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -102,7 +103,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := batchaccount.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/billing/2019-10-01-preview/billingproperties/README.md b/resource-manager/billing/2019-10-01-preview/billingproperties/README.md index 264601d77e6..3c44bd54635 100644 --- a/resource-manager/billing/2019-10-01-preview/billingproperties/README.md +++ b/resource-manager/billing/2019-10-01-preview/billingproperties/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/billing/2019-10-01-preview/billingproperties" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := billingproperties.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.BillingPropertyGet(ctx, id) if err != nil { diff --git a/resource-manager/billing/2020-05-01/billingproperties/README.md b/resource-manager/billing/2020-05-01/billingproperties/README.md index 7b681626497..66ee9fb83b8 100644 --- a/resource-manager/billing/2020-05-01/billingproperties/README.md +++ b/resource-manager/billing/2020-05-01/billingproperties/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/billing/2020-05-01/billingproperties" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := billingproperties.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.BillingPropertyGet(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := billingproperties.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := billingproperties.BillingProperty{ // ... diff --git a/resource-manager/blueprints/2018-11-01-preview/assignment/README.md b/resource-manager/blueprints/2018-11-01-preview/assignment/README.md index 8fdb6756923..2ccf24c9d01 100644 --- a/resource-manager/blueprints/2018-11-01-preview/assignment/README.md +++ b/resource-manager/blueprints/2018-11-01-preview/assignment/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := assignment.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/blueprints/2018-11-01-preview/blueprint/README.md b/resource-manager/blueprints/2018-11-01-preview/blueprint/README.md index bd10c23b5b9..fddf9ac11d1 100644 --- a/resource-manager/blueprints/2018-11-01-preview/blueprint/README.md +++ b/resource-manager/blueprints/2018-11-01-preview/blueprint/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blueprint.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/botservice/2022-09-15/bot/README.md b/resource-manager/botservice/2022-09-15/bot/README.md index 5011e8a9852..fe903879965 100644 --- a/resource-manager/botservice/2022-09-15/bot/README.md +++ b/resource-manager/botservice/2022-09-15/bot/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/bot" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := bot.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") +id := commonids.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") payload := bot.Bot{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := bot.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") +id := commonids.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := bot.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") +id := commonids.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") read, err := client.Get(ctx, id) if err != nil { @@ -97,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := bot.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -114,7 +115,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bot.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -131,7 +132,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bot.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") +id := commonids.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") payload := bot.Bot{ // ... diff --git a/resource-manager/botservice/2022-09-15/botconnection/README.md b/resource-manager/botservice/2022-09-15/botconnection/README.md index 6ad05323765..4ba1dcd9d5a 100644 --- a/resource-manager/botservice/2022-09-15/botconnection/README.md +++ b/resource-manager/botservice/2022-09-15/botconnection/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/botconnection" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := botconnection.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") +id := commonids.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") // alternatively `client.ListByBotService(ctx, id)` can be used to do batched pagination items, err := client.ListByBotServiceComplete(ctx, id) diff --git a/resource-manager/botservice/2022-09-15/bothostsettings/README.md b/resource-manager/botservice/2022-09-15/bothostsettings/README.md index f8d2d72d109..e28e05f2836 100644 --- a/resource-manager/botservice/2022-09-15/bothostsettings/README.md +++ b/resource-manager/botservice/2022-09-15/bothostsettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/bothostsettings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := bothostsettings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.HostSettingsGet(ctx, id) if err != nil { diff --git a/resource-manager/botservice/2022-09-15/channel/README.md b/resource-manager/botservice/2022-09-15/channel/README.md index b243e645a2b..ab43392801d 100644 --- a/resource-manager/botservice/2022-09-15/channel/README.md +++ b/resource-manager/botservice/2022-09-15/channel/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := channel.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") +id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") payload := channel.BotChannel{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := channel.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") +id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := channel.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") +id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") payload := channel.SiteInfo{ // ... @@ -82,7 +83,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := channel.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") +id := commonids.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") read, err := client.EmailCreateSignInUrl(ctx, id) if err != nil { @@ -98,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := channel.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") +id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") read, err := client.Get(ctx, id) if err != nil { @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := channel.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") +id := commonids.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -131,7 +132,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := channel.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") +id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") read, err := client.ListWithKeys(ctx, id) if err != nil { @@ -147,7 +148,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := channel.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") +id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") payload := channel.BotChannel{ // ... diff --git a/resource-manager/botservice/2022-09-15/listqnamakerendpointkeys/README.md b/resource-manager/botservice/2022-09-15/listqnamakerendpointkeys/README.md index bdb95dcef18..7e9ae45ff86 100644 --- a/resource-manager/botservice/2022-09-15/listqnamakerendpointkeys/README.md +++ b/resource-manager/botservice/2022-09-15/listqnamakerendpointkeys/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/listqnamakerendpointkeys" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := listqnamakerendpointkeys.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := listqnamakerendpointkeys.QnAMakerEndpointKeysRequestBody{ // ... diff --git a/resource-manager/botservice/2022-09-15/listserviceproviders/README.md b/resource-manager/botservice/2022-09-15/listserviceproviders/README.md index 4733b87f235..61ad525f43e 100644 --- a/resource-manager/botservice/2022-09-15/listserviceproviders/README.md +++ b/resource-manager/botservice/2022-09-15/listserviceproviders/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/listserviceproviders" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := listserviceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.BotConnectionListServiceProviders(ctx, id) if err != nil { diff --git a/resource-manager/botservice/2022-09-15/privateendpointconnections/README.md b/resource-manager/botservice/2022-09-15/privateendpointconnections/README.md index 20a6c4b9753..b8bce5e0ffc 100644 --- a/resource-manager/botservice/2022-09-15/privateendpointconnections/README.md +++ b/resource-manager/botservice/2022-09-15/privateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/privateendpointconnections" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") +id := commonids.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/botservice/2022-09-15/privatelinkresources/README.md b/resource-manager/botservice/2022-09-15/privatelinkresources/README.md index ab6d8a00de0..3b579e000b1 100644 --- a/resource-manager/botservice/2022-09-15/privatelinkresources/README.md +++ b/resource-manager/botservice/2022-09-15/privatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/privatelinkresources" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkresources.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") +id := commonids.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") read, err := client.ListByBotResource(ctx, id) if err != nil { diff --git a/resource-manager/chaosstudio/2023-04-15-preview/capabilities/README.md b/resource-manager/chaosstudio/2023-04-15-preview/capabilities/README.md index 8de291d8a1a..ce4b63a6b94 100644 --- a/resource-manager/chaosstudio/2023-04-15-preview/capabilities/README.md +++ b/resource-manager/chaosstudio/2023-04-15-preview/capabilities/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-04-15-preview/capabilities" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capabilities.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") +id := commonids.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") payload := capabilities.Capability{ // ... @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capabilities.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") +id := commonids.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") read, err := client.Delete(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capabilities.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") +id := commonids.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") read, err := client.Get(ctx, id) if err != nil { @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capabilities.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") // alternatively `client.List(ctx, id, capabilities.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, capabilities.DefaultListOperationOptions()) diff --git a/resource-manager/chaosstudio/2023-04-15-preview/experiments/README.md b/resource-manager/chaosstudio/2023-04-15-preview/experiments/README.md index 3370795ce12..b37859d6af1 100644 --- a/resource-manager/chaosstudio/2023-04-15-preview/experiments/README.md +++ b/resource-manager/chaosstudio/2023-04-15-preview/experiments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-04-15-preview/experiments" ``` @@ -125,7 +126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := experiments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id, experiments.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, experiments.DefaultListOperationOptions()) @@ -142,7 +143,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := experiments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id, experiments.DefaultListAllOperationOptions())` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id, experiments.DefaultListAllOperationOptions()) diff --git a/resource-manager/chaosstudio/2023-04-15-preview/targets/README.md b/resource-manager/chaosstudio/2023-04-15-preview/targets/README.md index 8469da3fcd9..f7f1ba139fd 100644 --- a/resource-manager/chaosstudio/2023-04-15-preview/targets/README.md +++ b/resource-manager/chaosstudio/2023-04-15-preview/targets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-04-15-preview/targets" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := targets.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") payload := targets.Target{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := targets.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := targets.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := targets.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, targets.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, targets.DefaultListOperationOptions()) diff --git a/resource-manager/chaosstudio/2023-11-01/capabilities/README.md b/resource-manager/chaosstudio/2023-11-01/capabilities/README.md index 353fdf577bc..3503b8b0c41 100644 --- a/resource-manager/chaosstudio/2023-11-01/capabilities/README.md +++ b/resource-manager/chaosstudio/2023-11-01/capabilities/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capabilities.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") +id := commonids.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") payload := capabilities.Capability{ // ... @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capabilities.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") +id := commonids.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") read, err := client.Delete(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capabilities.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") +id := commonids.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") read, err := client.Get(ctx, id) if err != nil { @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capabilities.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") // alternatively `client.List(ctx, id, capabilities.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, capabilities.DefaultListOperationOptions()) diff --git a/resource-manager/chaosstudio/2023-11-01/experiments/README.md b/resource-manager/chaosstudio/2023-11-01/experiments/README.md index cd28d17bf50..46efe93e253 100644 --- a/resource-manager/chaosstudio/2023-11-01/experiments/README.md +++ b/resource-manager/chaosstudio/2023-11-01/experiments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments" ``` @@ -113,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := experiments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id, experiments.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, experiments.DefaultListOperationOptions()) @@ -130,7 +131,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := experiments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id, experiments.DefaultListAllOperationOptions())` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id, experiments.DefaultListAllOperationOptions()) diff --git a/resource-manager/chaosstudio/2023-11-01/targets/README.md b/resource-manager/chaosstudio/2023-11-01/targets/README.md index 7d022bae47c..0cad1ac6081 100644 --- a/resource-manager/chaosstudio/2023-11-01/targets/README.md +++ b/resource-manager/chaosstudio/2023-11-01/targets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := targets.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") payload := targets.Target{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := targets.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := targets.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := targets.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, targets.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, targets.DefaultListOperationOptions()) diff --git a/resource-manager/chaosstudio/2024-01-01/capabilities/README.md b/resource-manager/chaosstudio/2024-01-01/capabilities/README.md index 246bcf6fde4..fc3504d96a6 100644 --- a/resource-manager/chaosstudio/2024-01-01/capabilities/README.md +++ b/resource-manager/chaosstudio/2024-01-01/capabilities/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2024-01-01/capabilities" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capabilities.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") +id := commonids.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") payload := capabilities.Capability{ // ... @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capabilities.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") +id := commonids.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") read, err := client.Delete(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capabilities.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") +id := commonids.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") read, err := client.Get(ctx, id) if err != nil { @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capabilities.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") // alternatively `client.List(ctx, id, capabilities.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, capabilities.DefaultListOperationOptions()) diff --git a/resource-manager/chaosstudio/2024-01-01/experiments/README.md b/resource-manager/chaosstudio/2024-01-01/experiments/README.md index e1bc5eab7c2..077c24f8c2a 100644 --- a/resource-manager/chaosstudio/2024-01-01/experiments/README.md +++ b/resource-manager/chaosstudio/2024-01-01/experiments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2024-01-01/experiments" ``` @@ -113,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := experiments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id, experiments.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, experiments.DefaultListOperationOptions()) @@ -130,7 +131,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := experiments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id, experiments.DefaultListAllOperationOptions())` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id, experiments.DefaultListAllOperationOptions()) diff --git a/resource-manager/chaosstudio/2024-01-01/targets/README.md b/resource-manager/chaosstudio/2024-01-01/targets/README.md index c1eeaad2a5c..b49afaf1e7d 100644 --- a/resource-manager/chaosstudio/2024-01-01/targets/README.md +++ b/resource-manager/chaosstudio/2024-01-01/targets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2024-01-01/targets" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := targets.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") payload := targets.Target{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := targets.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := targets.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := targets.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, targets.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, targets.DefaultListOperationOptions()) diff --git a/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/README.md b/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/README.md index eed160adbff..a2d5fa732df 100644 --- a/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/README.md +++ b/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.AccountsList(ctx, id)` can be used to do batched pagination items, err := client.AccountsListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.AccountsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.AccountsListByResourceGroupComplete(ctx, id) @@ -206,7 +207,7 @@ if err := client.AccountsUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := cognitiveservicesaccounts.CheckDomainAvailabilityParameter{ // ... @@ -264,7 +265,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.DeletedAccountsList(ctx, id)` can be used to do batched pagination items, err := client.DeletedAccountsListComplete(ctx, id) @@ -293,7 +294,7 @@ if err := client.DeletedAccountsPurgeThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ResourceSkusList(ctx, id)` can be used to do batched pagination items, err := client.ResourceSkusListComplete(ctx, id) diff --git a/resource-manager/cognitive/2023-05-01/cognitiveservicescommitmentplans/README.md b/resource-manager/cognitive/2023-05-01/cognitiveservicescommitmentplans/README.md index 4fe2c5c259e..1ed0b27754b 100644 --- a/resource-manager/cognitive/2023-05-01/cognitiveservicescommitmentplans/README.md +++ b/resource-manager/cognitive/2023-05-01/cognitiveservicescommitmentplans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicescommitmentplans" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cognitiveservicescommitmentplans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.CommitmentPlansListPlansByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.CommitmentPlansListPlansByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := cognitiveservicescommitmentplans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.CommitmentPlansListPlansBySubscription(ctx, id)` can be used to do batched pagination items, err := client.CommitmentPlansListPlansBySubscriptionComplete(ctx, id) diff --git a/resource-manager/cognitive/2023-05-01/skus/README.md b/resource-manager/cognitive/2023-05-01/skus/README.md index 048445c1124..07b4aa54fcb 100644 --- a/resource-manager/cognitive/2023-05-01/skus/README.md +++ b/resource-manager/cognitive/2023-05-01/skus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/skus" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := skus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ResourceSkusList(ctx, id)` can be used to do batched pagination items, err := client.ResourceSkusListComplete(ctx, id) diff --git a/resource-manager/communication/2023-03-31/communicationservices/README.md b/resource-manager/communication/2023-03-31/communicationservices/README.md index ec0390042c9..17952778eb9 100644 --- a/resource-manager/communication/2023-03-31/communicationservices/README.md +++ b/resource-manager/communication/2023-03-31/communicationservices/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := communicationservices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := communicationservices.CheckNameAvailabilityRequest{ // ... @@ -111,7 +112,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := communicationservices.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -128,7 +129,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := communicationservices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/communication/2023-03-31/emailservices/README.md b/resource-manager/communication/2023-03-31/emailservices/README.md index db2e36e0833..03c9a58a63a 100644 --- a/resource-manager/communication/2023-03-31/emailservices/README.md +++ b/resource-manager/communication/2023-03-31/emailservices/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := emailservices.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := emailservices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := emailservices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListVerifiedExchangeOnlineDomains(ctx, id) if err != nil { diff --git a/resource-manager/communication/2023-04-01/communicationservices/README.md b/resource-manager/communication/2023-04-01/communicationservices/README.md index 56455c95622..84ec35723ab 100644 --- a/resource-manager/communication/2023-04-01/communicationservices/README.md +++ b/resource-manager/communication/2023-04-01/communicationservices/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-04-01/communicationservices" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := communicationservices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := communicationservices.CheckNameAvailabilityRequest{ // ... @@ -111,7 +112,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := communicationservices.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -128,7 +129,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := communicationservices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/communication/2023-04-01/emailservices/README.md b/resource-manager/communication/2023-04-01/emailservices/README.md index 892359fea33..ddb565d0f3a 100644 --- a/resource-manager/communication/2023-04-01/emailservices/README.md +++ b/resource-manager/communication/2023-04-01/emailservices/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-04-01/emailservices" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := emailservices.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := emailservices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := emailservices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListVerifiedExchangeOnlineDomains(ctx, id) if err != nil { diff --git a/resource-manager/compute/2021-07-01/availabilitysets/README.md b/resource-manager/compute/2021-07-01/availabilitysets/README.md index 2848aa4ed44..89c8574ab03 100644 --- a/resource-manager/compute/2021-07-01/availabilitysets/README.md +++ b/resource-manager/compute/2021-07-01/availabilitysets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/availabilitysets" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := availabilitysets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ResourceSkusList(ctx, id, availabilitysets.DefaultResourceSkusListOperationOptions())` can be used to do batched pagination items, err := client.ResourceSkusListComplete(ctx, id, availabilitysets.DefaultResourceSkusListOperationOptions()) diff --git a/resource-manager/compute/2021-07-01/capacityreservationgroups/README.md b/resource-manager/compute/2021-07-01/capacityreservationgroups/README.md index e90cd1026da..075b4215006 100644 --- a/resource-manager/compute/2021-07-01/capacityreservationgroups/README.md +++ b/resource-manager/compute/2021-07-01/capacityreservationgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/capacityreservationgroups" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capacityreservationgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, capacityreservationgroups.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, capacityreservationgroups.DefaultListByResourceGroupOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := capacityreservationgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, capacityreservationgroups.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, capacityreservationgroups.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/compute/2021-07-01/dedicatedhost/README.md b/resource-manager/compute/2021-07-01/dedicatedhost/README.md index f4194c61c2d..9cbaaa9a01a 100644 --- a/resource-manager/compute/2021-07-01/dedicatedhost/README.md +++ b/resource-manager/compute/2021-07-01/dedicatedhost/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/dedicatedhost" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dedicatedhost.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") // alternatively `client.ListByHostGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByHostGroupComplete(ctx, id) diff --git a/resource-manager/compute/2021-07-01/dedicatedhostgroups/README.md b/resource-manager/compute/2021-07-01/dedicatedhostgroups/README.md index f1519ccc29c..9bd59bc4528 100644 --- a/resource-manager/compute/2021-07-01/dedicatedhostgroups/README.md +++ b/resource-manager/compute/2021-07-01/dedicatedhostgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/dedicatedhostgroups" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") payload := dedicatedhostgroups.DedicatedHostGroup{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") read, err := client.Get(ctx, id, dedicatedhostgroups.DefaultGetOperationOptions()) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) @@ -111,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") payload := dedicatedhostgroups.DedicatedHostGroupUpdate{ // ... diff --git a/resource-manager/compute/2021-07-01/dedicatedhosts/README.md b/resource-manager/compute/2021-07-01/dedicatedhosts/README.md index 44905e7d3a4..442910dfdcb 100644 --- a/resource-manager/compute/2021-07-01/dedicatedhosts/README.md +++ b/resource-manager/compute/2021-07-01/dedicatedhosts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/dedicatedhosts" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") payload := dedicatedhosts.DedicatedHost{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") read, err := client.Get(ctx, id, dedicatedhosts.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") payload := dedicatedhosts.DedicatedHostUpdate{ // ... diff --git a/resource-manager/compute/2021-07-01/galleries/README.md b/resource-manager/compute/2021-07-01/galleries/README.md index a6ed6656aff..a54f9234fe5 100644 --- a/resource-manager/compute/2021-07-01/galleries/README.md +++ b/resource-manager/compute/2021-07-01/galleries/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/galleries" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := galleries.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") payload := galleries.Gallery{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := galleries.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := galleries.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") read, err := client.Get(ctx, id, galleries.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := galleries.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := galleries.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := galleries.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") payload := galleries.GalleryUpdate{ // ... diff --git a/resource-manager/compute/2021-07-01/galleryapplications/README.md b/resource-manager/compute/2021-07-01/galleryapplications/README.md index 266b0108fcf..5b93c2ed75a 100644 --- a/resource-manager/compute/2021-07-01/galleryapplications/README.md +++ b/resource-manager/compute/2021-07-01/galleryapplications/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/galleryapplications" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := galleryapplications.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") // alternatively `client.ListByGallery(ctx, id)` can be used to do batched pagination items, err := client.ListByGalleryComplete(ctx, id) diff --git a/resource-manager/compute/2021-07-01/galleryimages/README.md b/resource-manager/compute/2021-07-01/galleryimages/README.md index fb0e828ecec..c899322a631 100644 --- a/resource-manager/compute/2021-07-01/galleryimages/README.md +++ b/resource-manager/compute/2021-07-01/galleryimages/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/galleryimages" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := galleryimages.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") // alternatively `client.ListByGallery(ctx, id)` can be used to do batched pagination items, err := client.ListByGalleryComplete(ctx, id) diff --git a/resource-manager/compute/2021-07-01/gallerysharingupdate/README.md b/resource-manager/compute/2021-07-01/gallerysharingupdate/README.md index 792e88d3ac1..3ebce788043 100644 --- a/resource-manager/compute/2021-07-01/gallerysharingupdate/README.md +++ b/resource-manager/compute/2021-07-01/gallerysharingupdate/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/gallerysharingupdate" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := gallerysharingupdate.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") payload := gallerysharingupdate.SharingUpdate{ // ... diff --git a/resource-manager/compute/2021-07-01/images/README.md b/resource-manager/compute/2021-07-01/images/README.md index 70570d065b9..5c5d668ca60 100644 --- a/resource-manager/compute/2021-07-01/images/README.md +++ b/resource-manager/compute/2021-07-01/images/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/images" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := images.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := images.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/compute/2021-07-01/proximityplacementgroups/README.md b/resource-manager/compute/2021-07-01/proximityplacementgroups/README.md index 20736223b6e..226791cc1e3 100644 --- a/resource-manager/compute/2021-07-01/proximityplacementgroups/README.md +++ b/resource-manager/compute/2021-07-01/proximityplacementgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/proximityplacementgroups" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := proximityplacementgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := proximityplacementgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/compute/2021-07-01/restorepointcollections/README.md b/resource-manager/compute/2021-07-01/restorepointcollections/README.md index 519ed4b031a..4448ce74829 100644 --- a/resource-manager/compute/2021-07-01/restorepointcollections/README.md +++ b/resource-manager/compute/2021-07-01/restorepointcollections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/restorepointcollections" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorepointcollections.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := restorepointcollections.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/compute/2021-07-01/skus/README.md b/resource-manager/compute/2021-07-01/skus/README.md index 436263548f7..1828e0ca136 100644 --- a/resource-manager/compute/2021-07-01/skus/README.md +++ b/resource-manager/compute/2021-07-01/skus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := skus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ResourceSkusList(ctx, id, skus.DefaultResourceSkusListOperationOptions())` can be used to do batched pagination items, err := client.ResourceSkusListComplete(ctx, id, skus.DefaultResourceSkusListOperationOptions()) diff --git a/resource-manager/compute/2021-07-01/sshpublickeys/README.md b/resource-manager/compute/2021-07-01/sshpublickeys/README.md index 5c6f83bbca5..bd53944c960 100644 --- a/resource-manager/compute/2021-07-01/sshpublickeys/README.md +++ b/resource-manager/compute/2021-07-01/sshpublickeys/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/sshpublickeys" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sshpublickeys.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -110,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sshpublickeys.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/compute/2021-07-01/virtualmachines/README.md b/resource-manager/compute/2021-07-01/virtualmachines/README.md index 7f5bb59523e..10fa217fa87 100644 --- a/resource-manager/compute/2021-07-01/virtualmachines/README.md +++ b/resource-manager/compute/2021-07-01/virtualmachines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/virtualmachines" ``` @@ -171,7 +172,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachines.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -188,7 +189,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachines.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id, virtualmachines.DefaultListAllOperationOptions())` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id, virtualmachines.DefaultListAllOperationOptions()) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesets/README.md b/resource-manager/compute/2021-07-01/virtualmachinescalesets/README.md index a0a368fc8e1..e7746e2a6a9 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesets/README.md +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/virtualmachinescalesets" ``` @@ -173,7 +174,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -190,7 +191,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/compute/2021-11-01/availabilitysets/README.md b/resource-manager/compute/2021-11-01/availabilitysets/README.md index 278ad75a71f..f0b28cd5ced 100644 --- a/resource-manager/compute/2021-11-01/availabilitysets/README.md +++ b/resource-manager/compute/2021-11-01/availabilitysets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") payload := availabilitysets.AvailabilitySet{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := availabilitysets.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") read, err := client.ListAvailableSizes(ctx, id) if err != nil { @@ -110,7 +111,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := availabilitysets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, availabilitysets.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, availabilitysets.DefaultListBySubscriptionOperationOptions()) @@ -127,7 +128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") payload := availabilitysets.AvailabilitySetUpdate{ // ... diff --git a/resource-manager/compute/2021-11-01/capacityreservationgroups/README.md b/resource-manager/compute/2021-11-01/capacityreservationgroups/README.md index 1381a9987a9..ccf92f562be 100644 --- a/resource-manager/compute/2021-11-01/capacityreservationgroups/README.md +++ b/resource-manager/compute/2021-11-01/capacityreservationgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/capacityreservationgroups" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capacityreservationgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, capacityreservationgroups.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, capacityreservationgroups.DefaultListByResourceGroupOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := capacityreservationgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, capacityreservationgroups.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, capacityreservationgroups.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/compute/2021-11-01/dedicatedhost/README.md b/resource-manager/compute/2021-11-01/dedicatedhost/README.md index dc8dfe8f847..11e2029d1d3 100644 --- a/resource-manager/compute/2021-11-01/dedicatedhost/README.md +++ b/resource-manager/compute/2021-11-01/dedicatedhost/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhost" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dedicatedhost.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") // alternatively `client.ListByHostGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByHostGroupComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dedicatedhost.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") if err := client.RestartThenPoll(ctx, id); err != nil { // handle the error diff --git a/resource-manager/compute/2021-11-01/dedicatedhostgroups/README.md b/resource-manager/compute/2021-11-01/dedicatedhostgroups/README.md index fe79bd6041a..95a20c43759 100644 --- a/resource-manager/compute/2021-11-01/dedicatedhostgroups/README.md +++ b/resource-manager/compute/2021-11-01/dedicatedhostgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") payload := dedicatedhostgroups.DedicatedHostGroup{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") read, err := client.Get(ctx, id, dedicatedhostgroups.DefaultGetOperationOptions()) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) @@ -111,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") payload := dedicatedhostgroups.DedicatedHostGroupUpdate{ // ... diff --git a/resource-manager/compute/2021-11-01/dedicatedhosts/README.md b/resource-manager/compute/2021-11-01/dedicatedhosts/README.md index 6426cd46362..1590a64201e 100644 --- a/resource-manager/compute/2021-11-01/dedicatedhosts/README.md +++ b/resource-manager/compute/2021-11-01/dedicatedhosts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") payload := dedicatedhosts.DedicatedHost{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") read, err := client.Get(ctx, id, dedicatedhosts.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") payload := dedicatedhosts.DedicatedHostUpdate{ // ... diff --git a/resource-manager/compute/2021-11-01/images/README.md b/resource-manager/compute/2021-11-01/images/README.md index 30ac6da2643..0faf30d8ef4 100644 --- a/resource-manager/compute/2021-11-01/images/README.md +++ b/resource-manager/compute/2021-11-01/images/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/images" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := images.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := images.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/compute/2021-11-01/proximityplacementgroups/README.md b/resource-manager/compute/2021-11-01/proximityplacementgroups/README.md index 5e636204d46..ccdcfa9e1d9 100644 --- a/resource-manager/compute/2021-11-01/proximityplacementgroups/README.md +++ b/resource-manager/compute/2021-11-01/proximityplacementgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/proximityplacementgroups" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := proximityplacementgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := proximityplacementgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/compute/2021-11-01/restorepointcollections/README.md b/resource-manager/compute/2021-11-01/restorepointcollections/README.md index ec774db5d70..466c9edb533 100644 --- a/resource-manager/compute/2021-11-01/restorepointcollections/README.md +++ b/resource-manager/compute/2021-11-01/restorepointcollections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/restorepointcollections" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorepointcollections.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := restorepointcollections.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/compute/2021-11-01/sshpublickeys/README.md b/resource-manager/compute/2021-11-01/sshpublickeys/README.md index 643490b8765..e6fb78b52d9 100644 --- a/resource-manager/compute/2021-11-01/sshpublickeys/README.md +++ b/resource-manager/compute/2021-11-01/sshpublickeys/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sshpublickeys.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -110,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sshpublickeys.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/compute/2021-11-01/virtualmachines/README.md b/resource-manager/compute/2021-11-01/virtualmachines/README.md index db94ec199c4..8a388b1bf12 100644 --- a/resource-manager/compute/2021-11-01/virtualmachines/README.md +++ b/resource-manager/compute/2021-11-01/virtualmachines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines" ``` @@ -171,7 +172,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachines.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id, virtualmachines.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, virtualmachines.DefaultListOperationOptions()) @@ -188,7 +189,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachines.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id, virtualmachines.DefaultListAllOperationOptions())` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id, virtualmachines.DefaultListAllOperationOptions()) diff --git a/resource-manager/compute/2021-11-01/virtualmachinescalesets/README.md b/resource-manager/compute/2021-11-01/virtualmachinescalesets/README.md index dab0a517916..766d2f59ab7 100644 --- a/resource-manager/compute/2021-11-01/virtualmachinescalesets/README.md +++ b/resource-manager/compute/2021-11-01/virtualmachinescalesets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachinescalesets" ``` @@ -173,7 +174,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -190,7 +191,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/compute/2022-03-01/availabilitysets/README.md b/resource-manager/compute/2022-03-01/availabilitysets/README.md index abe057b1948..41c442d8705 100644 --- a/resource-manager/compute/2022-03-01/availabilitysets/README.md +++ b/resource-manager/compute/2022-03-01/availabilitysets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/availabilitysets" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") payload := availabilitysets.AvailabilitySet{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := availabilitysets.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") read, err := client.ListAvailableSizes(ctx, id) if err != nil { @@ -110,7 +111,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := availabilitysets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, availabilitysets.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, availabilitysets.DefaultListBySubscriptionOperationOptions()) @@ -127,7 +128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") payload := availabilitysets.AvailabilitySetUpdate{ // ... diff --git a/resource-manager/compute/2022-03-01/capacityreservationgroups/README.md b/resource-manager/compute/2022-03-01/capacityreservationgroups/README.md index 3c7f8d0a900..c5c1d5594e4 100644 --- a/resource-manager/compute/2022-03-01/capacityreservationgroups/README.md +++ b/resource-manager/compute/2022-03-01/capacityreservationgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capacityreservationgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, capacityreservationgroups.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, capacityreservationgroups.DefaultListByResourceGroupOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := capacityreservationgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, capacityreservationgroups.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, capacityreservationgroups.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/compute/2022-03-01/dedicatedhost/README.md b/resource-manager/compute/2022-03-01/dedicatedhost/README.md index 56e72a24484..4e334f0652b 100644 --- a/resource-manager/compute/2022-03-01/dedicatedhost/README.md +++ b/resource-manager/compute/2022-03-01/dedicatedhost/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/dedicatedhost" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dedicatedhost.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") // alternatively `client.ListByHostGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByHostGroupComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dedicatedhost.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") if err := client.RestartThenPoll(ctx, id); err != nil { // handle the error diff --git a/resource-manager/compute/2022-03-01/dedicatedhostgroups/README.md b/resource-manager/compute/2022-03-01/dedicatedhostgroups/README.md index ae84787b624..c4cb8bed06a 100644 --- a/resource-manager/compute/2022-03-01/dedicatedhostgroups/README.md +++ b/resource-manager/compute/2022-03-01/dedicatedhostgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/dedicatedhostgroups" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") payload := dedicatedhostgroups.DedicatedHostGroup{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") read, err := client.Get(ctx, id, dedicatedhostgroups.DefaultGetOperationOptions()) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) @@ -111,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") payload := dedicatedhostgroups.DedicatedHostGroupUpdate{ // ... diff --git a/resource-manager/compute/2022-03-01/dedicatedhosts/README.md b/resource-manager/compute/2022-03-01/dedicatedhosts/README.md index 7eaae526bbc..fa630c1c545 100644 --- a/resource-manager/compute/2022-03-01/dedicatedhosts/README.md +++ b/resource-manager/compute/2022-03-01/dedicatedhosts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/dedicatedhosts" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") payload := dedicatedhosts.DedicatedHost{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") read, err := client.Get(ctx, id, dedicatedhosts.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") payload := dedicatedhosts.DedicatedHostUpdate{ // ... diff --git a/resource-manager/compute/2022-03-01/images/README.md b/resource-manager/compute/2022-03-01/images/README.md index 9d1d8c48ec3..d30b877a12d 100644 --- a/resource-manager/compute/2022-03-01/images/README.md +++ b/resource-manager/compute/2022-03-01/images/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := images.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := images.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/compute/2022-03-01/proximityplacementgroups/README.md b/resource-manager/compute/2022-03-01/proximityplacementgroups/README.md index e28c15c032a..36bc71c6881 100644 --- a/resource-manager/compute/2022-03-01/proximityplacementgroups/README.md +++ b/resource-manager/compute/2022-03-01/proximityplacementgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := proximityplacementgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := proximityplacementgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/compute/2022-03-01/restorepointcollections/README.md b/resource-manager/compute/2022-03-01/restorepointcollections/README.md index b483bce0ccc..143a40925ec 100644 --- a/resource-manager/compute/2022-03-01/restorepointcollections/README.md +++ b/resource-manager/compute/2022-03-01/restorepointcollections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/restorepointcollections" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorepointcollections.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := restorepointcollections.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/compute/2022-03-01/sshpublickeys/README.md b/resource-manager/compute/2022-03-01/sshpublickeys/README.md index c3bfbb0c597..e948f678d58 100644 --- a/resource-manager/compute/2022-03-01/sshpublickeys/README.md +++ b/resource-manager/compute/2022-03-01/sshpublickeys/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/sshpublickeys" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sshpublickeys.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -110,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sshpublickeys.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/compute/2022-03-01/virtualmachines/README.md b/resource-manager/compute/2022-03-01/virtualmachines/README.md index 7ea1f48e81c..a53ccdd2f9d 100644 --- a/resource-manager/compute/2022-03-01/virtualmachines/README.md +++ b/resource-manager/compute/2022-03-01/virtualmachines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/virtualmachines" ``` @@ -171,7 +172,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachines.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id, virtualmachines.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, virtualmachines.DefaultListOperationOptions()) @@ -188,7 +189,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachines.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id, virtualmachines.DefaultListAllOperationOptions())` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id, virtualmachines.DefaultListAllOperationOptions()) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesets/README.md b/resource-manager/compute/2022-03-01/virtualmachinescalesets/README.md index 9fa6285fa4f..46e66e99344 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesets/README.md +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/virtualmachinescalesets" ``` @@ -173,7 +174,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -190,7 +191,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/compute/2022-03-02/diskaccesses/README.md b/resource-manager/compute/2022-03-02/diskaccesses/README.md index 71ecc158107..8a09545bc9a 100644 --- a/resource-manager/compute/2022-03-02/diskaccesses/README.md +++ b/resource-manager/compute/2022-03-02/diskaccesses/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses" ``` @@ -113,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diskaccesses.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -130,7 +131,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diskaccesses.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/compute/2022-03-02/diskencryptionsets/README.md b/resource-manager/compute/2022-03-02/diskencryptionsets/README.md index c3248b22d15..9b58789c524 100644 --- a/resource-manager/compute/2022-03-02/diskencryptionsets/README.md +++ b/resource-manager/compute/2022-03-02/diskencryptionsets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := diskencryptionsets.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") +id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") payload := diskencryptionsets.DiskEncryptionSet{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := diskencryptionsets.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") +id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := diskencryptionsets.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") +id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diskencryptionsets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diskencryptionsets.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") +id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") // alternatively `client.ListAssociatedResources(ctx, id)` can be used to do batched pagination items, err := client.ListAssociatedResourcesComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diskencryptionsets.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -120,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diskencryptionsets.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") +id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") payload := diskencryptionsets.DiskEncryptionSetUpdate{ // ... diff --git a/resource-manager/compute/2022-03-02/disks/README.md b/resource-manager/compute/2022-03-02/disks/README.md index 8f5fdfbfa5a..ddd100a2f91 100644 --- a/resource-manager/compute/2022-03-02/disks/README.md +++ b/resource-manager/compute/2022-03-02/disks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/disks" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := disks.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") payload := disks.Disk{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := disks.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := disks.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := disks.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") payload := disks.GrantAccessData{ // ... @@ -86,7 +87,7 @@ if err := client.GrantAccessThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := disks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := disks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -120,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := disks.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") if err := client.RevokeAccessThenPoll(ctx, id); err != nil { // handle the error @@ -132,7 +133,7 @@ if err := client.RevokeAccessThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := disks.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") payload := disks.DiskUpdate{ // ... diff --git a/resource-manager/compute/2022-03-02/snapshots/README.md b/resource-manager/compute/2022-03-02/snapshots/README.md index 5dcfcd1c0de..a6a0ad36fcb 100644 --- a/resource-manager/compute/2022-03-02/snapshots/README.md +++ b/resource-manager/compute/2022-03-02/snapshots/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots" ``` @@ -86,7 +87,7 @@ if err := client.GrantAccessThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := snapshots.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := snapshots.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/compute/2022-03-03/galleries/README.md b/resource-manager/compute/2022-03-03/galleries/README.md index c69598844b9..2781ffa4ca9 100644 --- a/resource-manager/compute/2022-03-03/galleries/README.md +++ b/resource-manager/compute/2022-03-03/galleries/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := galleries.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") payload := galleries.Gallery{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := galleries.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := galleries.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") read, err := client.Get(ctx, id, galleries.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := galleries.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := galleries.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := galleries.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") payload := galleries.GalleryUpdate{ // ... diff --git a/resource-manager/compute/2022-03-03/galleryapplications/README.md b/resource-manager/compute/2022-03-03/galleryapplications/README.md index d8c1e80421b..7aba5a0d4aa 100644 --- a/resource-manager/compute/2022-03-03/galleryapplications/README.md +++ b/resource-manager/compute/2022-03-03/galleryapplications/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := galleryapplications.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") // alternatively `client.ListByGallery(ctx, id)` can be used to do batched pagination items, err := client.ListByGalleryComplete(ctx, id) diff --git a/resource-manager/compute/2022-03-03/galleryimages/README.md b/resource-manager/compute/2022-03-03/galleryimages/README.md index d177f8784ed..915c0167863 100644 --- a/resource-manager/compute/2022-03-03/galleryimages/README.md +++ b/resource-manager/compute/2022-03-03/galleryimages/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := galleryimages.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") // alternatively `client.ListByGallery(ctx, id)` can be used to do batched pagination items, err := client.ListByGalleryComplete(ctx, id) diff --git a/resource-manager/compute/2022-03-03/gallerysharingupdate/README.md b/resource-manager/compute/2022-03-03/gallerysharingupdate/README.md index 17c038beafb..838eb33378b 100644 --- a/resource-manager/compute/2022-03-03/gallerysharingupdate/README.md +++ b/resource-manager/compute/2022-03-03/gallerysharingupdate/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := gallerysharingupdate.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") payload := gallerysharingupdate.SharingUpdate{ // ... diff --git a/resource-manager/compute/2023-03-01/availabilitysets/README.md b/resource-manager/compute/2023-03-01/availabilitysets/README.md index af87f3ace1e..365eb2ad4c2 100644 --- a/resource-manager/compute/2023-03-01/availabilitysets/README.md +++ b/resource-manager/compute/2023-03-01/availabilitysets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/availabilitysets" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") payload := availabilitysets.AvailabilitySet{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := availabilitysets.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") read, err := client.ListAvailableSizes(ctx, id) if err != nil { @@ -110,7 +111,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := availabilitysets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, availabilitysets.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, availabilitysets.DefaultListBySubscriptionOperationOptions()) @@ -127,7 +128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") payload := availabilitysets.AvailabilitySetUpdate{ // ... diff --git a/resource-manager/compute/2023-03-01/capacityreservationgroups/README.md b/resource-manager/compute/2023-03-01/capacityreservationgroups/README.md index 2001b026ddb..f879e873185 100644 --- a/resource-manager/compute/2023-03-01/capacityreservationgroups/README.md +++ b/resource-manager/compute/2023-03-01/capacityreservationgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/capacityreservationgroups" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capacityreservationgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, capacityreservationgroups.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, capacityreservationgroups.DefaultListByResourceGroupOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := capacityreservationgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, capacityreservationgroups.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, capacityreservationgroups.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/compute/2023-03-01/dedicatedhost/README.md b/resource-manager/compute/2023-03-01/dedicatedhost/README.md index 1387be2a640..bcaa9e5479e 100644 --- a/resource-manager/compute/2023-03-01/dedicatedhost/README.md +++ b/resource-manager/compute/2023-03-01/dedicatedhost/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/dedicatedhost" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dedicatedhost.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") read, err := client.ListAvailableSizes(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhost.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") // alternatively `client.ListByHostGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByHostGroupComplete(ctx, id) @@ -57,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dedicatedhost.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") if err := client.RestartThenPoll(ctx, id); err != nil { // handle the error diff --git a/resource-manager/compute/2023-03-01/dedicatedhostgroups/README.md b/resource-manager/compute/2023-03-01/dedicatedhostgroups/README.md index 2d0d2f4da55..5857c2765b4 100644 --- a/resource-manager/compute/2023-03-01/dedicatedhostgroups/README.md +++ b/resource-manager/compute/2023-03-01/dedicatedhostgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/dedicatedhostgroups" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") payload := dedicatedhostgroups.DedicatedHostGroup{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") read, err := client.Get(ctx, id, dedicatedhostgroups.DefaultGetOperationOptions()) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) @@ -111,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dedicatedhostgroups.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") payload := dedicatedhostgroups.DedicatedHostGroupUpdate{ // ... diff --git a/resource-manager/compute/2023-03-01/dedicatedhosts/README.md b/resource-manager/compute/2023-03-01/dedicatedhosts/README.md index cfbc70af143..e9408e2a70c 100644 --- a/resource-manager/compute/2023-03-01/dedicatedhosts/README.md +++ b/resource-manager/compute/2023-03-01/dedicatedhosts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/dedicatedhosts" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") payload := dedicatedhosts.DedicatedHost{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") read, err := client.Get(ctx, id, dedicatedhosts.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhosts.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") payload := dedicatedhosts.DedicatedHostUpdate{ // ... diff --git a/resource-manager/compute/2023-03-01/images/README.md b/resource-manager/compute/2023-03-01/images/README.md index f3580bfa680..8f74942b4d9 100644 --- a/resource-manager/compute/2023-03-01/images/README.md +++ b/resource-manager/compute/2023-03-01/images/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/images" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := images.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := images.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/compute/2023-03-01/proximityplacementgroups/README.md b/resource-manager/compute/2023-03-01/proximityplacementgroups/README.md index 4fc070d40ad..7676a64182a 100644 --- a/resource-manager/compute/2023-03-01/proximityplacementgroups/README.md +++ b/resource-manager/compute/2023-03-01/proximityplacementgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/proximityplacementgroups" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := proximityplacementgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := proximityplacementgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/compute/2023-03-01/restorepointcollections/README.md b/resource-manager/compute/2023-03-01/restorepointcollections/README.md index 9082a4ee392..57394072e18 100644 --- a/resource-manager/compute/2023-03-01/restorepointcollections/README.md +++ b/resource-manager/compute/2023-03-01/restorepointcollections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepointcollections" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorepointcollections.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := restorepointcollections.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/compute/2023-03-01/sshpublickeys/README.md b/resource-manager/compute/2023-03-01/sshpublickeys/README.md index b9f907c0a4a..8e2e6daecce 100644 --- a/resource-manager/compute/2023-03-01/sshpublickeys/README.md +++ b/resource-manager/compute/2023-03-01/sshpublickeys/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/sshpublickeys" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sshpublickeys.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -110,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sshpublickeys.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/compute/2023-03-01/virtualmachines/README.md b/resource-manager/compute/2023-03-01/virtualmachines/README.md index 2ec0527f599..e676b46b906 100644 --- a/resource-manager/compute/2023-03-01/virtualmachines/README.md +++ b/resource-manager/compute/2023-03-01/virtualmachines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachines" ``` @@ -171,7 +172,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachines.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id, virtualmachines.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, virtualmachines.DefaultListOperationOptions()) @@ -188,7 +189,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachines.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id, virtualmachines.DefaultListAllOperationOptions())` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id, virtualmachines.DefaultListAllOperationOptions()) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesets/README.md b/resource-manager/compute/2023-03-01/virtualmachinescalesets/README.md index ca5dbb9d3d5..f67edaf9d8c 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesets/README.md +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachinescalesets" ``` @@ -173,7 +174,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -190,7 +191,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/compute/2023-04-02/diskaccesses/README.md b/resource-manager/compute/2023-04-02/diskaccesses/README.md index bc72b93c572..e357180fed8 100644 --- a/resource-manager/compute/2023-04-02/diskaccesses/README.md +++ b/resource-manager/compute/2023-04-02/diskaccesses/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/diskaccesses" ``` @@ -113,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diskaccesses.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -130,7 +131,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diskaccesses.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/compute/2023-04-02/diskencryptionsets/README.md b/resource-manager/compute/2023-04-02/diskencryptionsets/README.md index af26c86bb08..0e56295ad90 100644 --- a/resource-manager/compute/2023-04-02/diskencryptionsets/README.md +++ b/resource-manager/compute/2023-04-02/diskencryptionsets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/diskencryptionsets" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := diskencryptionsets.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") +id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") payload := diskencryptionsets.DiskEncryptionSet{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := diskencryptionsets.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") +id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := diskencryptionsets.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") +id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diskencryptionsets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diskencryptionsets.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") +id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") // alternatively `client.ListAssociatedResources(ctx, id)` can be used to do batched pagination items, err := client.ListAssociatedResourcesComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diskencryptionsets.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -120,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diskencryptionsets.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") +id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") payload := diskencryptionsets.DiskEncryptionSetUpdate{ // ... diff --git a/resource-manager/compute/2023-04-02/disks/README.md b/resource-manager/compute/2023-04-02/disks/README.md index bd88ced040a..0e2b9a7ef18 100644 --- a/resource-manager/compute/2023-04-02/disks/README.md +++ b/resource-manager/compute/2023-04-02/disks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := disks.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") payload := disks.Disk{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := disks.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := disks.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := disks.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") payload := disks.GrantAccessData{ // ... @@ -86,7 +87,7 @@ if err := client.GrantAccessThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := disks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := disks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -120,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := disks.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") if err := client.RevokeAccessThenPoll(ctx, id); err != nil { // handle the error @@ -132,7 +133,7 @@ if err := client.RevokeAccessThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := disks.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") payload := disks.DiskUpdate{ // ... diff --git a/resource-manager/compute/2023-04-02/snapshots/README.md b/resource-manager/compute/2023-04-02/snapshots/README.md index 66969aa3776..5f0c5befa01 100644 --- a/resource-manager/compute/2023-04-02/snapshots/README.md +++ b/resource-manager/compute/2023-04-02/snapshots/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/snapshots" ``` @@ -86,7 +87,7 @@ if err := client.GrantAccessThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := snapshots.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := snapshots.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/confidentialledger/2022-05-13/confidentialledger/README.md b/resource-manager/confidentialledger/2022-05-13/confidentialledger/README.md index 5fb3b45f80a..71869deb544 100644 --- a/resource-manager/confidentialledger/2022-05-13/confidentialledger/README.md +++ b/resource-manager/confidentialledger/2022-05-13/confidentialledger/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := confidentialledger.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.LedgerListByResourceGroup(ctx, id, confidentialledger.DefaultLedgerListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.LedgerListByResourceGroupComplete(ctx, id, confidentialledger.DefaultLedgerListByResourceGroupOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := confidentialledger.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.LedgerListBySubscription(ctx, id, confidentialledger.DefaultLedgerListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.LedgerListBySubscriptionComplete(ctx, id, confidentialledger.DefaultLedgerListBySubscriptionOperationOptions()) diff --git a/resource-manager/confidentialledger/2022-05-13/nameavailability/README.md b/resource-manager/confidentialledger/2022-05-13/nameavailability/README.md index 04b6a5ac918..27ac0c65ce2 100644 --- a/resource-manager/confidentialledger/2022-05-13/nameavailability/README.md +++ b/resource-manager/confidentialledger/2022-05-13/nameavailability/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/nameavailability" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := nameavailability.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := nameavailability.CheckNameAvailabilityRequest{ // ... diff --git a/resource-manager/connectedvmware/2022-01-10-preview/clusters/README.md b/resource-manager/connectedvmware/2022-01-10-preview/clusters/README.md index 334cd3559fd..dfea17ef94c 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/clusters/README.md +++ b/resource-manager/connectedvmware/2022-01-10-preview/clusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2022-01-10-preview/clusters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/datastores/README.md b/resource-manager/connectedvmware/2022-01-10-preview/datastores/README.md index 37ded749bf9..2e61acb5f7a 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/datastores/README.md +++ b/resource-manager/connectedvmware/2022-01-10-preview/datastores/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2022-01-10-preview/datastores" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datastores.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := datastores.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/hosts/README.md b/resource-manager/connectedvmware/2022-01-10-preview/hosts/README.md index f0c8872f173..cc92400c9a4 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/hosts/README.md +++ b/resource-manager/connectedvmware/2022-01-10-preview/hosts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2022-01-10-preview/hosts" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hosts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hosts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/README.md b/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/README.md index 8854a075049..8f4749c7f2a 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/README.md +++ b/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2022-01-10-preview/resourcepools" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcepools.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourcepools.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/vcenters/README.md b/resource-manager/connectedvmware/2022-01-10-preview/vcenters/README.md index aa0b6486b98..a9a50d1e672 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/vcenters/README.md +++ b/resource-manager/connectedvmware/2022-01-10-preview/vcenters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2022-01-10-preview/vcenters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vcenters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vcenters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/README.md b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/README.md index 3f056ec679f..45f047ae346 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/README.md +++ b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines" ``` @@ -98,7 +99,7 @@ if err := client.InstallPatchesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -115,7 +116,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachines.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/README.md b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/README.md index 8b9f3b7a504..6ef87294cb8 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/README.md +++ b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachinetemplates.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinetemplates.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/README.md b/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/README.md index 2e5e7f74fea..68c60e97725 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/README.md +++ b/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2023-10-01/clusters/README.md b/resource-manager/connectedvmware/2023-10-01/clusters/README.md index 1a496d64597..0e197b5f501 100644 --- a/resource-manager/connectedvmware/2023-10-01/clusters/README.md +++ b/resource-manager/connectedvmware/2023-10-01/clusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2023-10-01/clusters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2023-10-01/datastores/README.md b/resource-manager/connectedvmware/2023-10-01/datastores/README.md index 8e8b9f4fcbf..21224ff9407 100644 --- a/resource-manager/connectedvmware/2023-10-01/datastores/README.md +++ b/resource-manager/connectedvmware/2023-10-01/datastores/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2023-10-01/datastores" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datastores.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := datastores.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2023-10-01/hosts/README.md b/resource-manager/connectedvmware/2023-10-01/hosts/README.md index 7bcd72e19d7..b5f3970cf67 100644 --- a/resource-manager/connectedvmware/2023-10-01/hosts/README.md +++ b/resource-manager/connectedvmware/2023-10-01/hosts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2023-10-01/hosts" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hosts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hosts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2023-10-01/resourcepools/README.md b/resource-manager/connectedvmware/2023-10-01/resourcepools/README.md index 2469ca3133e..5cefb601f71 100644 --- a/resource-manager/connectedvmware/2023-10-01/resourcepools/README.md +++ b/resource-manager/connectedvmware/2023-10-01/resourcepools/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2023-10-01/resourcepools" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcepools.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourcepools.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2023-10-01/vcenters/README.md b/resource-manager/connectedvmware/2023-10-01/vcenters/README.md index bd91446ba0c..03555381da8 100644 --- a/resource-manager/connectedvmware/2023-10-01/vcenters/README.md +++ b/resource-manager/connectedvmware/2023-10-01/vcenters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2023-10-01/vcenters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vcenters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vcenters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2023-10-01/virtualmachineinstances/README.md b/resource-manager/connectedvmware/2023-10-01/virtualmachineinstances/README.md index 5ecf381d117..1f060e055e0 100644 --- a/resource-manager/connectedvmware/2023-10-01/virtualmachineinstances/README.md +++ b/resource-manager/connectedvmware/2023-10-01/virtualmachineinstances/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2023-10-01/virtualmachineinstances" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := virtualmachineinstances.VirtualMachineInstance{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.DeleteThenPoll(ctx, id, virtualmachineinstances.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, virtualmachineinstances.DefaultDeleteOp ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.RestartThenPoll(ctx, id); err != nil { // handle the error @@ -98,7 +99,7 @@ if err := client.RestartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -110,7 +111,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := virtualmachineinstances.StopVirtualMachineOptions{ // ... @@ -127,7 +128,7 @@ if err := client.StopThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := virtualmachineinstances.VirtualMachineInstanceUpdate{ // ... diff --git a/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/README.md b/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/README.md index da1a78474f0..b8f655726da 100644 --- a/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/README.md +++ b/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachinetemplates.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinetemplates.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2023-10-01/virtualnetworks/README.md b/resource-manager/connectedvmware/2023-10-01/virtualnetworks/README.md index c29b99cee23..0b70193a6f3 100644 --- a/resource-manager/connectedvmware/2023-10-01/virtualnetworks/README.md +++ b/resource-manager/connectedvmware/2023-10-01/virtualnetworks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2023-10-01/virtualnetworks" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2023-10-01/vminstanceguestagents/README.md b/resource-manager/connectedvmware/2023-10-01/vminstanceguestagents/README.md index b92f4e1360a..65f7bbaf208 100644 --- a/resource-manager/connectedvmware/2023-10-01/vminstanceguestagents/README.md +++ b/resource-manager/connectedvmware/2023-10-01/vminstanceguestagents/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2023-10-01/vminstanceguestagents" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vminstanceguestagents.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := vminstanceguestagents.GuestAgent{ // ... @@ -41,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := vminstanceguestagents.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := vminstanceguestagents.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vminstanceguestagents.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/connectedvmware/2023-10-01/vminstancehybrididentitymetadata/README.md b/resource-manager/connectedvmware/2023-10-01/vminstancehybrididentitymetadata/README.md index 24a6d43cffe..7e9c5014904 100644 --- a/resource-manager/connectedvmware/2023-10-01/vminstancehybrididentitymetadata/README.md +++ b/resource-manager/connectedvmware/2023-10-01/vminstancehybrididentitymetadata/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2023-10-01/vminstancehybrididentitymetadata" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vminstancehybrididentitymetadata.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vminstancehybrididentitymetadata.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/consumption/2019-10-01/aggregatedcost/README.md b/resource-manager/consumption/2019-10-01/aggregatedcost/README.md index 8e90d5f7ef0..bfabf45f0c5 100644 --- a/resource-manager/consumption/2019-10-01/aggregatedcost/README.md +++ b/resource-manager/consumption/2019-10-01/aggregatedcost/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/aggregatedcost" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := aggregatedcost.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.GetByManagementGroup(ctx, id, aggregatedcost.DefaultGetByManagementGroupOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2019-10-01/budgets/README.md b/resource-manager/consumption/2019-10-01/budgets/README.md index 547d61af753..47665ca6320 100644 --- a/resource-manager/consumption/2019-10-01/budgets/README.md +++ b/resource-manager/consumption/2019-10-01/budgets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := budgets.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/consumption/2019-10-01/charges/README.md b/resource-manager/consumption/2019-10-01/charges/README.md index 14f60807e23..9811e7dfe6e 100644 --- a/resource-manager/consumption/2019-10-01/charges/README.md +++ b/resource-manager/consumption/2019-10-01/charges/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/charges" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := charges.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, charges.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2019-10-01/credits/README.md b/resource-manager/consumption/2019-10-01/credits/README.md index a1e14e5b800..81e9fba9504 100644 --- a/resource-manager/consumption/2019-10-01/credits/README.md +++ b/resource-manager/consumption/2019-10-01/credits/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/credits" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := credits.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/consumption/2019-10-01/events/README.md b/resource-manager/consumption/2019-10-01/events/README.md index dc3d85add37..975406a3344 100644 --- a/resource-manager/consumption/2019-10-01/events/README.md +++ b/resource-manager/consumption/2019-10-01/events/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/events" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := events.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, events.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, events.DefaultListOperationOptions()) diff --git a/resource-manager/consumption/2019-10-01/forecasts/README.md b/resource-manager/consumption/2019-10-01/forecasts/README.md index 3d31c284332..98dc433c0f2 100644 --- a/resource-manager/consumption/2019-10-01/forecasts/README.md +++ b/resource-manager/consumption/2019-10-01/forecasts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/forecasts" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := forecasts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id, forecasts.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2019-10-01/lots/README.md b/resource-manager/consumption/2019-10-01/lots/README.md index 0dddb876365..38088b29364 100644 --- a/resource-manager/consumption/2019-10-01/lots/README.md +++ b/resource-manager/consumption/2019-10-01/lots/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/lots" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := lots.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/consumption/2019-10-01/marketplaces/README.md b/resource-manager/consumption/2019-10-01/marketplaces/README.md index 1922576326d..35e86f9588c 100644 --- a/resource-manager/consumption/2019-10-01/marketplaces/README.md +++ b/resource-manager/consumption/2019-10-01/marketplaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/marketplaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := marketplaces.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, marketplaces.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, marketplaces.DefaultListOperationOptions()) diff --git a/resource-manager/consumption/2019-10-01/pricesheet/README.md b/resource-manager/consumption/2019-10-01/pricesheet/README.md index 72ffa8c6f78..9142cd7999f 100644 --- a/resource-manager/consumption/2019-10-01/pricesheet/README.md +++ b/resource-manager/consumption/2019-10-01/pricesheet/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/pricesheet" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := pricesheet.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.Get(ctx, id, pricesheet.DefaultGetOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2019-10-01/reservationdetails/README.md b/resource-manager/consumption/2019-10-01/reservationdetails/README.md index 19fe98cfaa9..fb67229c334 100644 --- a/resource-manager/consumption/2019-10-01/reservationdetails/README.md +++ b/resource-manager/consumption/2019-10-01/reservationdetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/reservationdetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationdetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ReservationsDetailsList(ctx, id, reservationdetails.DefaultReservationsDetailsListOperationOptions())` can be used to do batched pagination items, err := client.ReservationsDetailsListComplete(ctx, id, reservationdetails.DefaultReservationsDetailsListOperationOptions()) diff --git a/resource-manager/consumption/2019-10-01/reservationrecommendationdetails/README.md b/resource-manager/consumption/2019-10-01/reservationrecommendationdetails/README.md index bd1a0c0be83..a19b025f034 100644 --- a/resource-manager/consumption/2019-10-01/reservationrecommendationdetails/README.md +++ b/resource-manager/consumption/2019-10-01/reservationrecommendationdetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/reservationrecommendationdetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationrecommendationdetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id, reservationrecommendationdetails.DefaultGetOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2019-10-01/reservationrecommendations/README.md b/resource-manager/consumption/2019-10-01/reservationrecommendations/README.md index 811cc2ab59b..8e564540dbe 100644 --- a/resource-manager/consumption/2019-10-01/reservationrecommendations/README.md +++ b/resource-manager/consumption/2019-10-01/reservationrecommendations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/reservationrecommendations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationrecommendations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, reservationrecommendations.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, reservationrecommendations.DefaultListOperationOptions()) diff --git a/resource-manager/consumption/2019-10-01/reservationsummaries/README.md b/resource-manager/consumption/2019-10-01/reservationsummaries/README.md index e069eaab26a..b4576d6f8d9 100644 --- a/resource-manager/consumption/2019-10-01/reservationsummaries/README.md +++ b/resource-manager/consumption/2019-10-01/reservationsummaries/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/reservationsummaries" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationsummaries.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ReservationsSummariesList(ctx, id, reservationsummaries.DefaultReservationsSummariesListOperationOptions())` can be used to do batched pagination items, err := client.ReservationsSummariesListComplete(ctx, id, reservationsummaries.DefaultReservationsSummariesListOperationOptions()) diff --git a/resource-manager/consumption/2019-10-01/usagedetails/README.md b/resource-manager/consumption/2019-10-01/usagedetails/README.md index ab4e458a06e..83e8b79727f 100644 --- a/resource-manager/consumption/2019-10-01/usagedetails/README.md +++ b/resource-manager/consumption/2019-10-01/usagedetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/usagedetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := usagedetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, usagedetails.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, usagedetails.DefaultListOperationOptions()) diff --git a/resource-manager/consumption/2021-10-01/aggregatedcost/README.md b/resource-manager/consumption/2021-10-01/aggregatedcost/README.md index a772ad7d01a..9da1a33dcf5 100644 --- a/resource-manager/consumption/2021-10-01/aggregatedcost/README.md +++ b/resource-manager/consumption/2021-10-01/aggregatedcost/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2021-10-01/aggregatedcost" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := aggregatedcost.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.GetByManagementGroup(ctx, id, aggregatedcost.DefaultGetByManagementGroupOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2021-10-01/budgets/README.md b/resource-manager/consumption/2021-10-01/budgets/README.md index 15067e153fe..0480c8f6b20 100644 --- a/resource-manager/consumption/2021-10-01/budgets/README.md +++ b/resource-manager/consumption/2021-10-01/budgets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2021-10-01/budgets" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := budgets.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/consumption/2021-10-01/charges/README.md b/resource-manager/consumption/2021-10-01/charges/README.md index 5c923a0c4c7..862be2a0295 100644 --- a/resource-manager/consumption/2021-10-01/charges/README.md +++ b/resource-manager/consumption/2021-10-01/charges/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2021-10-01/charges" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := charges.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, charges.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2021-10-01/marketplaces/README.md b/resource-manager/consumption/2021-10-01/marketplaces/README.md index 2faecf88d69..7142f266902 100644 --- a/resource-manager/consumption/2021-10-01/marketplaces/README.md +++ b/resource-manager/consumption/2021-10-01/marketplaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2021-10-01/marketplaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := marketplaces.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, marketplaces.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, marketplaces.DefaultListOperationOptions()) diff --git a/resource-manager/consumption/2021-10-01/pricesheet/README.md b/resource-manager/consumption/2021-10-01/pricesheet/README.md index 700cddebb54..c8678d90865 100644 --- a/resource-manager/consumption/2021-10-01/pricesheet/README.md +++ b/resource-manager/consumption/2021-10-01/pricesheet/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2021-10-01/pricesheet" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := pricesheet.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.Get(ctx, id, pricesheet.DefaultGetOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2021-10-01/reservationdetails/README.md b/resource-manager/consumption/2021-10-01/reservationdetails/README.md index bd6ab51d89c..b0349c3e3d7 100644 --- a/resource-manager/consumption/2021-10-01/reservationdetails/README.md +++ b/resource-manager/consumption/2021-10-01/reservationdetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2021-10-01/reservationdetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationdetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ReservationsDetailsList(ctx, id, reservationdetails.DefaultReservationsDetailsListOperationOptions())` can be used to do batched pagination items, err := client.ReservationsDetailsListComplete(ctx, id, reservationdetails.DefaultReservationsDetailsListOperationOptions()) diff --git a/resource-manager/consumption/2021-10-01/reservationrecommendationdetails/README.md b/resource-manager/consumption/2021-10-01/reservationrecommendationdetails/README.md index 5ddba26bab6..4e012eb8642 100644 --- a/resource-manager/consumption/2021-10-01/reservationrecommendationdetails/README.md +++ b/resource-manager/consumption/2021-10-01/reservationrecommendationdetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2021-10-01/reservationrecommendationdetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationrecommendationdetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id, reservationrecommendationdetails.DefaultGetOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2021-10-01/reservationrecommendations/README.md b/resource-manager/consumption/2021-10-01/reservationrecommendations/README.md index 4c6e06dbb78..695f9627a09 100644 --- a/resource-manager/consumption/2021-10-01/reservationrecommendations/README.md +++ b/resource-manager/consumption/2021-10-01/reservationrecommendations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2021-10-01/reservationrecommendations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationrecommendations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, reservationrecommendations.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, reservationrecommendations.DefaultListOperationOptions()) diff --git a/resource-manager/consumption/2021-10-01/reservationsummaries/README.md b/resource-manager/consumption/2021-10-01/reservationsummaries/README.md index fcfc0e32be0..0df7efaedc1 100644 --- a/resource-manager/consumption/2021-10-01/reservationsummaries/README.md +++ b/resource-manager/consumption/2021-10-01/reservationsummaries/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2021-10-01/reservationsummaries" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationsummaries.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ReservationsSummariesList(ctx, id, reservationsummaries.DefaultReservationsSummariesListOperationOptions())` can be used to do batched pagination items, err := client.ReservationsSummariesListComplete(ctx, id, reservationsummaries.DefaultReservationsSummariesListOperationOptions()) diff --git a/resource-manager/consumption/2021-10-01/usagedetails/README.md b/resource-manager/consumption/2021-10-01/usagedetails/README.md index b01af7448da..26ddb28be22 100644 --- a/resource-manager/consumption/2021-10-01/usagedetails/README.md +++ b/resource-manager/consumption/2021-10-01/usagedetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2021-10-01/usagedetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := usagedetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, usagedetails.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, usagedetails.DefaultListOperationOptions()) diff --git a/resource-manager/consumption/2022-09-01/aggregatedcost/README.md b/resource-manager/consumption/2022-09-01/aggregatedcost/README.md index a3845e3c267..5e8e30cd61e 100644 --- a/resource-manager/consumption/2022-09-01/aggregatedcost/README.md +++ b/resource-manager/consumption/2022-09-01/aggregatedcost/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2022-09-01/aggregatedcost" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := aggregatedcost.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.GetByManagementGroup(ctx, id, aggregatedcost.DefaultGetByManagementGroupOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2022-09-01/budgets/README.md b/resource-manager/consumption/2022-09-01/budgets/README.md index 254071f5f26..d37751e4db7 100644 --- a/resource-manager/consumption/2022-09-01/budgets/README.md +++ b/resource-manager/consumption/2022-09-01/budgets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2022-09-01/budgets" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := budgets.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/consumption/2022-09-01/charges/README.md b/resource-manager/consumption/2022-09-01/charges/README.md index 1d6f9471bd9..4fd0e315f9e 100644 --- a/resource-manager/consumption/2022-09-01/charges/README.md +++ b/resource-manager/consumption/2022-09-01/charges/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2022-09-01/charges" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := charges.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, charges.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2022-09-01/marketplaces/README.md b/resource-manager/consumption/2022-09-01/marketplaces/README.md index d99dcb90914..709abd53e6d 100644 --- a/resource-manager/consumption/2022-09-01/marketplaces/README.md +++ b/resource-manager/consumption/2022-09-01/marketplaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2022-09-01/marketplaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := marketplaces.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, marketplaces.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, marketplaces.DefaultListOperationOptions()) diff --git a/resource-manager/consumption/2022-09-01/pricesheet/README.md b/resource-manager/consumption/2022-09-01/pricesheet/README.md index ffbfb594e68..e024fe16fc7 100644 --- a/resource-manager/consumption/2022-09-01/pricesheet/README.md +++ b/resource-manager/consumption/2022-09-01/pricesheet/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2022-09-01/pricesheet" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := pricesheet.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.Get(ctx, id, pricesheet.DefaultGetOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2022-09-01/reservationdetails/README.md b/resource-manager/consumption/2022-09-01/reservationdetails/README.md index 2b79e3d4751..3ec941f389b 100644 --- a/resource-manager/consumption/2022-09-01/reservationdetails/README.md +++ b/resource-manager/consumption/2022-09-01/reservationdetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2022-09-01/reservationdetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationdetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ReservationsDetailsList(ctx, id, reservationdetails.DefaultReservationsDetailsListOperationOptions())` can be used to do batched pagination items, err := client.ReservationsDetailsListComplete(ctx, id, reservationdetails.DefaultReservationsDetailsListOperationOptions()) diff --git a/resource-manager/consumption/2022-09-01/reservationrecommendationdetails/README.md b/resource-manager/consumption/2022-09-01/reservationrecommendationdetails/README.md index 78513723180..7dff5a31d84 100644 --- a/resource-manager/consumption/2022-09-01/reservationrecommendationdetails/README.md +++ b/resource-manager/consumption/2022-09-01/reservationrecommendationdetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2022-09-01/reservationrecommendationdetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationrecommendationdetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id, reservationrecommendationdetails.DefaultGetOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2022-09-01/reservationrecommendations/README.md b/resource-manager/consumption/2022-09-01/reservationrecommendations/README.md index d4169a93b23..53f49d804fb 100644 --- a/resource-manager/consumption/2022-09-01/reservationrecommendations/README.md +++ b/resource-manager/consumption/2022-09-01/reservationrecommendations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2022-09-01/reservationrecommendations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationrecommendations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, reservationrecommendations.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, reservationrecommendations.DefaultListOperationOptions()) diff --git a/resource-manager/consumption/2022-09-01/reservationsummaries/README.md b/resource-manager/consumption/2022-09-01/reservationsummaries/README.md index 47b2e74d437..f57b8e56e54 100644 --- a/resource-manager/consumption/2022-09-01/reservationsummaries/README.md +++ b/resource-manager/consumption/2022-09-01/reservationsummaries/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2022-09-01/reservationsummaries" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationsummaries.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ReservationsSummariesList(ctx, id, reservationsummaries.DefaultReservationsSummariesListOperationOptions())` can be used to do batched pagination items, err := client.ReservationsSummariesListComplete(ctx, id, reservationsummaries.DefaultReservationsSummariesListOperationOptions()) diff --git a/resource-manager/consumption/2022-09-01/usagedetails/README.md b/resource-manager/consumption/2022-09-01/usagedetails/README.md index ad883afe564..9a70b9dd135 100644 --- a/resource-manager/consumption/2022-09-01/usagedetails/README.md +++ b/resource-manager/consumption/2022-09-01/usagedetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2022-09-01/usagedetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := usagedetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, usagedetails.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, usagedetails.DefaultListOperationOptions()) diff --git a/resource-manager/consumption/2023-05-01/aggregatedcost/README.md b/resource-manager/consumption/2023-05-01/aggregatedcost/README.md index ab961bef49b..9c7442ec7e0 100644 --- a/resource-manager/consumption/2023-05-01/aggregatedcost/README.md +++ b/resource-manager/consumption/2023-05-01/aggregatedcost/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-05-01/aggregatedcost" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := aggregatedcost.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.GetByManagementGroup(ctx, id, aggregatedcost.DefaultGetByManagementGroupOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2023-05-01/budgets/README.md b/resource-manager/consumption/2023-05-01/budgets/README.md index bb3d0f4d945..5f14460e78a 100644 --- a/resource-manager/consumption/2023-05-01/budgets/README.md +++ b/resource-manager/consumption/2023-05-01/budgets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-05-01/budgets" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := budgets.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/consumption/2023-05-01/charges/README.md b/resource-manager/consumption/2023-05-01/charges/README.md index 5d1f175d21d..aeba06ec3b1 100644 --- a/resource-manager/consumption/2023-05-01/charges/README.md +++ b/resource-manager/consumption/2023-05-01/charges/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-05-01/charges" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := charges.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, charges.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2023-05-01/marketplaces/README.md b/resource-manager/consumption/2023-05-01/marketplaces/README.md index 2f91238f6fc..2e79333fd98 100644 --- a/resource-manager/consumption/2023-05-01/marketplaces/README.md +++ b/resource-manager/consumption/2023-05-01/marketplaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-05-01/marketplaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := marketplaces.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, marketplaces.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, marketplaces.DefaultListOperationOptions()) diff --git a/resource-manager/consumption/2023-05-01/pricesheet/README.md b/resource-manager/consumption/2023-05-01/pricesheet/README.md index 342ed569171..76c7e936b7c 100644 --- a/resource-manager/consumption/2023-05-01/pricesheet/README.md +++ b/resource-manager/consumption/2023-05-01/pricesheet/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-05-01/pricesheet" ``` @@ -36,7 +37,7 @@ if err := client.DownloadByBillingAccountPeriodThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := pricesheet.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.Get(ctx, id, pricesheet.DefaultGetOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2023-05-01/reservationdetails/README.md b/resource-manager/consumption/2023-05-01/reservationdetails/README.md index a5b4f6aa496..f2368379fcd 100644 --- a/resource-manager/consumption/2023-05-01/reservationdetails/README.md +++ b/resource-manager/consumption/2023-05-01/reservationdetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-05-01/reservationdetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationdetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ReservationsDetailsList(ctx, id, reservationdetails.DefaultReservationsDetailsListOperationOptions())` can be used to do batched pagination items, err := client.ReservationsDetailsListComplete(ctx, id, reservationdetails.DefaultReservationsDetailsListOperationOptions()) diff --git a/resource-manager/consumption/2023-05-01/reservationrecommendationdetails/README.md b/resource-manager/consumption/2023-05-01/reservationrecommendationdetails/README.md index 29a719a8c45..309b81bfe8b 100644 --- a/resource-manager/consumption/2023-05-01/reservationrecommendationdetails/README.md +++ b/resource-manager/consumption/2023-05-01/reservationrecommendationdetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-05-01/reservationrecommendationdetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationrecommendationdetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id, reservationrecommendationdetails.DefaultGetOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2023-05-01/reservationrecommendations/README.md b/resource-manager/consumption/2023-05-01/reservationrecommendations/README.md index 25e3296bc65..6f07f943a0a 100644 --- a/resource-manager/consumption/2023-05-01/reservationrecommendations/README.md +++ b/resource-manager/consumption/2023-05-01/reservationrecommendations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-05-01/reservationrecommendations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationrecommendations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, reservationrecommendations.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, reservationrecommendations.DefaultListOperationOptions()) diff --git a/resource-manager/consumption/2023-05-01/reservationsummaries/README.md b/resource-manager/consumption/2023-05-01/reservationsummaries/README.md index c96e6195865..770435a7d8e 100644 --- a/resource-manager/consumption/2023-05-01/reservationsummaries/README.md +++ b/resource-manager/consumption/2023-05-01/reservationsummaries/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-05-01/reservationsummaries" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationsummaries.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ReservationsSummariesList(ctx, id, reservationsummaries.DefaultReservationsSummariesListOperationOptions())` can be used to do batched pagination items, err := client.ReservationsSummariesListComplete(ctx, id, reservationsummaries.DefaultReservationsSummariesListOperationOptions()) diff --git a/resource-manager/consumption/2023-05-01/usagedetails/README.md b/resource-manager/consumption/2023-05-01/usagedetails/README.md index 146d7d92e4a..3242ab05083 100644 --- a/resource-manager/consumption/2023-05-01/usagedetails/README.md +++ b/resource-manager/consumption/2023-05-01/usagedetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-05-01/usagedetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := usagedetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, usagedetails.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, usagedetails.DefaultListOperationOptions()) diff --git a/resource-manager/consumption/2023-11-01/aggregatedcost/README.md b/resource-manager/consumption/2023-11-01/aggregatedcost/README.md index 3ec4225c272..9919fd7651e 100644 --- a/resource-manager/consumption/2023-11-01/aggregatedcost/README.md +++ b/resource-manager/consumption/2023-11-01/aggregatedcost/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-11-01/aggregatedcost" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := aggregatedcost.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.GetByManagementGroup(ctx, id, aggregatedcost.DefaultGetByManagementGroupOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2023-11-01/budgets/README.md b/resource-manager/consumption/2023-11-01/budgets/README.md index f7addbb1788..2c134475376 100644 --- a/resource-manager/consumption/2023-11-01/budgets/README.md +++ b/resource-manager/consumption/2023-11-01/budgets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-11-01/budgets" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := budgets.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/consumption/2023-11-01/charges/README.md b/resource-manager/consumption/2023-11-01/charges/README.md index 06366602a73..145d3abefe9 100644 --- a/resource-manager/consumption/2023-11-01/charges/README.md +++ b/resource-manager/consumption/2023-11-01/charges/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-11-01/charges" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := charges.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, charges.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2023-11-01/marketplaces/README.md b/resource-manager/consumption/2023-11-01/marketplaces/README.md index cce779006ef..732f4f17231 100644 --- a/resource-manager/consumption/2023-11-01/marketplaces/README.md +++ b/resource-manager/consumption/2023-11-01/marketplaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-11-01/marketplaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := marketplaces.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, marketplaces.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, marketplaces.DefaultListOperationOptions()) diff --git a/resource-manager/consumption/2023-11-01/pricesheet/README.md b/resource-manager/consumption/2023-11-01/pricesheet/README.md index 9db9d945634..0262aa27463 100644 --- a/resource-manager/consumption/2023-11-01/pricesheet/README.md +++ b/resource-manager/consumption/2023-11-01/pricesheet/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-11-01/pricesheet" ``` @@ -36,7 +37,7 @@ if err := client.DownloadByBillingAccountPeriodThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := pricesheet.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.Get(ctx, id, pricesheet.DefaultGetOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2023-11-01/reservationdetails/README.md b/resource-manager/consumption/2023-11-01/reservationdetails/README.md index 8326176d423..3aac99effe1 100644 --- a/resource-manager/consumption/2023-11-01/reservationdetails/README.md +++ b/resource-manager/consumption/2023-11-01/reservationdetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-11-01/reservationdetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationdetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ReservationsDetailsList(ctx, id, reservationdetails.DefaultReservationsDetailsListOperationOptions())` can be used to do batched pagination items, err := client.ReservationsDetailsListComplete(ctx, id, reservationdetails.DefaultReservationsDetailsListOperationOptions()) diff --git a/resource-manager/consumption/2023-11-01/reservationrecommendationdetails/README.md b/resource-manager/consumption/2023-11-01/reservationrecommendationdetails/README.md index 3fa3f6a129f..6a43818b51a 100644 --- a/resource-manager/consumption/2023-11-01/reservationrecommendationdetails/README.md +++ b/resource-manager/consumption/2023-11-01/reservationrecommendationdetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-11-01/reservationrecommendationdetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationrecommendationdetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id, reservationrecommendationdetails.DefaultGetOperationOptions()) if err != nil { diff --git a/resource-manager/consumption/2023-11-01/reservationrecommendations/README.md b/resource-manager/consumption/2023-11-01/reservationrecommendations/README.md index 8d73fc4b4fe..6d8c9d55129 100644 --- a/resource-manager/consumption/2023-11-01/reservationrecommendations/README.md +++ b/resource-manager/consumption/2023-11-01/reservationrecommendations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-11-01/reservationrecommendations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationrecommendations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, reservationrecommendations.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, reservationrecommendations.DefaultListOperationOptions()) diff --git a/resource-manager/consumption/2023-11-01/reservationsummaries/README.md b/resource-manager/consumption/2023-11-01/reservationsummaries/README.md index 9ad57340a47..dc4fd687520 100644 --- a/resource-manager/consumption/2023-11-01/reservationsummaries/README.md +++ b/resource-manager/consumption/2023-11-01/reservationsummaries/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-11-01/reservationsummaries" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := reservationsummaries.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ReservationsSummariesList(ctx, id, reservationsummaries.DefaultReservationsSummariesListOperationOptions())` can be used to do batched pagination items, err := client.ReservationsSummariesListComplete(ctx, id, reservationsummaries.DefaultReservationsSummariesListOperationOptions()) diff --git a/resource-manager/consumption/2023-11-01/usagedetails/README.md b/resource-manager/consumption/2023-11-01/usagedetails/README.md index d6ef13da1e5..8ab736dca6b 100644 --- a/resource-manager/consumption/2023-11-01/usagedetails/README.md +++ b/resource-manager/consumption/2023-11-01/usagedetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2023-11-01/usagedetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := usagedetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, usagedetails.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, usagedetails.DefaultListOperationOptions()) diff --git a/resource-manager/containerapps/2023-05-01/connectedenvironments/README.md b/resource-manager/containerapps/2023-05-01/connectedenvironments/README.md index 9d2042ed357..6fcd1330a26 100644 --- a/resource-manager/containerapps/2023-05-01/connectedenvironments/README.md +++ b/resource-manager/containerapps/2023-05-01/connectedenvironments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/connectedenvironments" ``` @@ -181,7 +182,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connectedenvironments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -198,7 +199,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := connectedenvironments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/containerapps/2023-05-01/containerapps/README.md b/resource-manager/containerapps/2023-05-01/containerapps/README.md index aa69c9fd6b2..a0549f0cd78 100644 --- a/resource-manager/containerapps/2023-05-01/containerapps/README.md +++ b/resource-manager/containerapps/2023-05-01/containerapps/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps" ``` @@ -167,7 +168,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerapps.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -184,7 +185,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := containerapps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/containerapps/2023-05-01/jobs/README.md b/resource-manager/containerapps/2023-05-01/jobs/README.md index 776331f310a..7e4d2d4b7c7 100644 --- a/resource-manager/containerapps/2023-05-01/jobs/README.md +++ b/resource-manager/containerapps/2023-05-01/jobs/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/jobs" ``` @@ -102,7 +103,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobs.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -119,7 +120,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := jobs.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/containerapps/2023-05-01/managedenvironments/README.md b/resource-manager/containerapps/2023-05-01/managedenvironments/README.md index 77d6f57d6c5..2f69715e893 100644 --- a/resource-manager/containerapps/2023-05-01/managedenvironments/README.md +++ b/resource-manager/containerapps/2023-05-01/managedenvironments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments" ``` @@ -192,7 +193,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -209,7 +210,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedenvironments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/containerinstance/2023-05-01/containerinstance/README.md b/resource-manager/containerinstance/2023-05-01/containerinstance/README.md index 98c8a19b6d9..dbc924faa1d 100644 --- a/resource-manager/containerinstance/2023-05-01/containerinstance/README.md +++ b/resource-manager/containerinstance/2023-05-01/containerinstance/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance" ``` @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerinstance.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ContainerGroupsList(ctx, id)` can be used to do batched pagination items, err := client.ContainerGroupsListComplete(ctx, id) @@ -102,7 +103,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := containerinstance.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ContainerGroupsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ContainerGroupsListByResourceGroupComplete(ctx, id) @@ -283,7 +284,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerinstance.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") if err := client.SubnetServiceAssociationLinkDeleteThenPoll(ctx, id); err != nil { // handle the error diff --git a/resource-manager/containerregistry/2021-08-01-preview/operation/README.md b/resource-manager/containerregistry/2021-08-01-preview/operation/README.md index cc6ed40c383..42ee0689f45 100644 --- a/resource-manager/containerregistry/2021-08-01-preview/operation/README.md +++ b/resource-manager/containerregistry/2021-08-01-preview/operation/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2021-08-01-preview/operation" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operation.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := operation.RegistryNameCheckRequest{ // ... diff --git a/resource-manager/containerregistry/2021-08-01-preview/registries/README.md b/resource-manager/containerregistry/2021-08-01-preview/registries/README.md index 55bd36afb6b..0096cff1c94 100644 --- a/resource-manager/containerregistry/2021-08-01-preview/registries/README.md +++ b/resource-manager/containerregistry/2021-08-01-preview/registries/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2021-08-01-preview/registries" ``` @@ -103,7 +104,7 @@ if err := client.ImportImageThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := registries.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -120,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := registries.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/containerregistry/2022-12-01/operation/README.md b/resource-manager/containerregistry/2022-12-01/operation/README.md index 31623a79e50..36792b8a85c 100644 --- a/resource-manager/containerregistry/2022-12-01/operation/README.md +++ b/resource-manager/containerregistry/2022-12-01/operation/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2022-12-01/operation" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operation.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := operation.RegistryNameCheckRequest{ // ... diff --git a/resource-manager/containerregistry/2022-12-01/registries/README.md b/resource-manager/containerregistry/2022-12-01/registries/README.md index c10857a1101..be35c1682c3 100644 --- a/resource-manager/containerregistry/2022-12-01/registries/README.md +++ b/resource-manager/containerregistry/2022-12-01/registries/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2022-12-01/registries" ``` @@ -119,7 +120,7 @@ if err := client.ImportImageThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := registries.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -136,7 +137,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := registries.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/containerregistry/2023-06-01-preview/operation/README.md b/resource-manager/containerregistry/2023-06-01-preview/operation/README.md index a413bc0ff9d..92b636a428a 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/operation/README.md +++ b/resource-manager/containerregistry/2023-06-01-preview/operation/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operation.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := operation.RegistryNameCheckRequest{ // ... diff --git a/resource-manager/containerregistry/2023-06-01-preview/registries/README.md b/resource-manager/containerregistry/2023-06-01-preview/registries/README.md index aa64ae71fbe..d9e0e20a5bf 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/registries/README.md +++ b/resource-manager/containerregistry/2023-06-01-preview/registries/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries" ``` @@ -119,7 +120,7 @@ if err := client.ImportImageThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := registries.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -136,7 +137,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := registries.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/containerregistry/2023-07-01/operation/README.md b/resource-manager/containerregistry/2023-07-01/operation/README.md index 1dc6531b52b..edfbd6ac3db 100644 --- a/resource-manager/containerregistry/2023-07-01/operation/README.md +++ b/resource-manager/containerregistry/2023-07-01/operation/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/operation" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operation.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := operation.RegistryNameCheckRequest{ // ... diff --git a/resource-manager/containerregistry/2023-07-01/registries/README.md b/resource-manager/containerregistry/2023-07-01/registries/README.md index 88ddb567f0f..5e8f78ccc90 100644 --- a/resource-manager/containerregistry/2023-07-01/registries/README.md +++ b/resource-manager/containerregistry/2023-07-01/registries/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/registries" ``` @@ -119,7 +120,7 @@ if err := client.ImportImageThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := registries.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -136,7 +137,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := registries.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/containerservice/2019-08-01/agentpools/README.md b/resource-manager/containerservice/2019-08-01/agentpools/README.md index 559596ac460..22f1a8e012c 100644 --- a/resource-manager/containerservice/2019-08-01/agentpools/README.md +++ b/resource-manager/containerservice/2019-08-01/agentpools/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/agentpools" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.GetAvailableAgentPoolVersions(ctx, id) if err != nil { @@ -101,7 +102,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/containerservice/2019-08-01/managedclusters/README.md b/resource-manager/containerservice/2019-08-01/managedclusters/README.md index 366de74738b..0d697eeedb8 100644 --- a/resource-manager/containerservice/2019-08-01/managedclusters/README.md +++ b/resource-manager/containerservice/2019-08-01/managedclusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/managedclusters" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedCluster{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.Get(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.GetUpgradeProfile(ctx, id) if err != nil { @@ -101,7 +102,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -118,7 +119,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -135,7 +136,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterAdminCredentials(ctx, id) if err != nil { @@ -151,7 +152,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterUserCredentials(ctx, id) if err != nil { @@ -167,7 +168,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedClusterAADProfile{ // ... @@ -184,7 +185,7 @@ if err := client.ResetAADProfileThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedClusterServicePrincipalProfile{ // ... @@ -201,7 +202,7 @@ if err := client.ResetServicePrincipalProfileThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { // handle the error @@ -213,7 +214,7 @@ if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.TagsObject{ // ... diff --git a/resource-manager/containerservice/2022-09-02-preview/agentpools/README.md b/resource-manager/containerservice/2022-09-02-preview/agentpools/README.md index cf30f96688b..4cbb3afed85 100644 --- a/resource-manager/containerservice/2022-09-02-preview/agentpools/README.md +++ b/resource-manager/containerservice/2022-09-02-preview/agentpools/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/agentpools" ``` @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.GetAvailableAgentPoolVersions(ctx, id) if err != nil { @@ -117,7 +118,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/containerservice/2022-09-02-preview/fleets/README.md b/resource-manager/containerservice/2022-09-02-preview/fleets/README.md index 859af1971a2..fc58af20c70 100644 --- a/resource-manager/containerservice/2022-09-02-preview/fleets/README.md +++ b/resource-manager/containerservice/2022-09-02-preview/fleets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fleets.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := fleets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/containerservice/2022-09-02-preview/maintenanceconfigurations/README.md b/resource-manager/containerservice/2022-09-02-preview/maintenanceconfigurations/README.md index 8dc96bd0ab4..836e32a4632 100644 --- a/resource-manager/containerservice/2022-09-02-preview/maintenanceconfigurations/README.md +++ b/resource-manager/containerservice/2022-09-02-preview/maintenanceconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/maintenanceconfigurations" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.ListByManagedCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedClusterComplete(ctx, id) diff --git a/resource-manager/containerservice/2022-09-02-preview/managedclusters/README.md b/resource-manager/containerservice/2022-09-02-preview/managedclusters/README.md index 0491d5a6b2c..33dbb5bed90 100644 --- a/resource-manager/containerservice/2022-09-02-preview/managedclusters/README.md +++ b/resource-manager/containerservice/2022-09-02-preview/managedclusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/managedclusters" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.AbortLatestOperation(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedCluster{ // ... @@ -57,7 +58,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.DeleteThenPoll(ctx, id, managedclusters.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -69,7 +70,7 @@ if err := client.DeleteThenPoll(ctx, id, managedclusters.DefaultDeleteOperationO ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.Get(ctx, id) if err != nil { @@ -133,7 +134,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.GetUpgradeProfile(ctx, id) if err != nil { @@ -149,7 +150,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -166,7 +167,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -183,7 +184,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterAdminCredentials(ctx, id, managedclusters.DefaultListClusterAdminCredentialsOperationOptions()) if err != nil { @@ -199,7 +200,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterMonitoringUserCredentials(ctx, id, managedclusters.DefaultListClusterMonitoringUserCredentialsOperationOptions()) if err != nil { @@ -215,7 +216,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterUserCredentials(ctx, id, managedclusters.DefaultListClusterUserCredentialsOperationOptions()) if err != nil { @@ -231,7 +232,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.ListOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.ListOutboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -248,7 +249,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedClusterAADProfile{ // ... @@ -265,7 +266,7 @@ if err := client.ResetAADProfileThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedClusterServicePrincipalProfile{ // ... @@ -282,7 +283,7 @@ if err := client.ResetServicePrincipalProfileThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { // handle the error @@ -294,7 +295,7 @@ if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.RotateServiceAccountSigningKeysThenPoll(ctx, id); err != nil { // handle the error @@ -306,7 +307,7 @@ if err := client.RotateServiceAccountSigningKeysThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.RunCommandRequest{ // ... @@ -323,7 +324,7 @@ if err := client.RunCommandThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -335,7 +336,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -347,7 +348,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.TagsObject{ // ... diff --git a/resource-manager/containerservice/2022-09-02-preview/managedclustersnapshots/README.md b/resource-manager/containerservice/2022-09-02-preview/managedclustersnapshots/README.md index 672e734afe6..ece26b75a1c 100644 --- a/resource-manager/containerservice/2022-09-02-preview/managedclustersnapshots/README.md +++ b/resource-manager/containerservice/2022-09-02-preview/managedclustersnapshots/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/managedclustersnapshots" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclustersnapshots.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclustersnapshots.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/containerservice/2022-09-02-preview/privateendpointconnections/README.md b/resource-manager/containerservice/2022-09-02-preview/privateendpointconnections/README.md index 58bfce5badf..151dc69b1c3 100644 --- a/resource-manager/containerservice/2022-09-02-preview/privateendpointconnections/README.md +++ b/resource-manager/containerservice/2022-09-02-preview/privateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/privateendpointconnections" ``` @@ -52,7 +53,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/containerservice/2022-09-02-preview/privatelinkresources/README.md b/resource-manager/containerservice/2022-09-02-preview/privatelinkresources/README.md index 532fb1035eb..eef49432cf7 100644 --- a/resource-manager/containerservice/2022-09-02-preview/privatelinkresources/README.md +++ b/resource-manager/containerservice/2022-09-02-preview/privatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/privatelinkresources" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkresources.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/containerservice/2022-09-02-preview/resolveprivatelinkserviceid/README.md b/resource-manager/containerservice/2022-09-02-preview/resolveprivatelinkserviceid/README.md index eddece44036..90b07995a2f 100644 --- a/resource-manager/containerservice/2022-09-02-preview/resolveprivatelinkserviceid/README.md +++ b/resource-manager/containerservice/2022-09-02-preview/resolveprivatelinkserviceid/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/resolveprivatelinkserviceid" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resolveprivatelinkserviceid.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := resolveprivatelinkserviceid.PrivateLinkResource{ // ... diff --git a/resource-manager/containerservice/2022-09-02-preview/snapshots/README.md b/resource-manager/containerservice/2022-09-02-preview/snapshots/README.md index 3317ad04812..200e91d54c6 100644 --- a/resource-manager/containerservice/2022-09-02-preview/snapshots/README.md +++ b/resource-manager/containerservice/2022-09-02-preview/snapshots/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/snapshots" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshots.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := snapshots.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/containerservice/2022-09-02-preview/trustedaccess/README.md b/resource-manager/containerservice/2022-09-02-preview/trustedaccess/README.md index 1f8f588d44c..eb3b3c2629f 100644 --- a/resource-manager/containerservice/2022-09-02-preview/trustedaccess/README.md +++ b/resource-manager/containerservice/2022-09-02-preview/trustedaccess/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/trustedaccess" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := trustedaccess.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.RoleBindingsList(ctx, id)` can be used to do batched pagination items, err := client.RoleBindingsListComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-03-02-preview/agentpools/README.md b/resource-manager/containerservice/2023-03-02-preview/agentpools/README.md index 5213a736d18..aaacb5c5e48 100644 --- a/resource-manager/containerservice/2023-03-02-preview/agentpools/README.md +++ b/resource-manager/containerservice/2023-03-02-preview/agentpools/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools" ``` @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.GetAvailableAgentPoolVersions(ctx, id) if err != nil { @@ -113,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/README.md b/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/README.md index 10c6fc8c045..10bf032259c 100644 --- a/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/README.md +++ b/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.ListByManagedCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedClusterComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-03-02-preview/managedclusters/README.md b/resource-manager/containerservice/2023-03-02-preview/managedclusters/README.md index 8d4701d5cf3..e8afcddb3b8 100644 --- a/resource-manager/containerservice/2023-03-02-preview/managedclusters/README.md +++ b/resource-manager/containerservice/2023-03-02-preview/managedclusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +37,7 @@ if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedCluster{ // ... @@ -53,7 +54,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.DeleteThenPoll(ctx, id, managedclusters.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -65,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id, managedclusters.DefaultDeleteOperationO ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.Get(ctx, id) if err != nil { @@ -129,7 +130,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.GetUpgradeProfile(ctx, id) if err != nil { @@ -145,7 +146,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -162,7 +163,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -179,7 +180,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterAdminCredentials(ctx, id, managedclusters.DefaultListClusterAdminCredentialsOperationOptions()) if err != nil { @@ -195,7 +196,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterMonitoringUserCredentials(ctx, id, managedclusters.DefaultListClusterMonitoringUserCredentialsOperationOptions()) if err != nil { @@ -211,7 +212,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterUserCredentials(ctx, id, managedclusters.DefaultListClusterUserCredentialsOperationOptions()) if err != nil { @@ -243,7 +244,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.ListOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.ListOutboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -260,7 +261,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedClusterAADProfile{ // ... @@ -277,7 +278,7 @@ if err := client.ResetAADProfileThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedClusterServicePrincipalProfile{ // ... @@ -294,7 +295,7 @@ if err := client.ResetServicePrincipalProfileThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { // handle the error @@ -306,7 +307,7 @@ if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.RotateServiceAccountSigningKeysThenPoll(ctx, id); err != nil { // handle the error @@ -318,7 +319,7 @@ if err := client.RotateServiceAccountSigningKeysThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.RunCommandRequest{ // ... @@ -335,7 +336,7 @@ if err := client.RunCommandThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -347,7 +348,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -359,7 +360,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.TagsObject{ // ... diff --git a/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/README.md b/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/README.md index f2efe4241c6..9dff4dbe26d 100644 --- a/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/README.md +++ b/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclustersnapshots.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclustersnapshots.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/README.md b/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/README.md index 614e5a45222..8ce6529a7f6 100644 --- a/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/README.md +++ b/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections" ``` @@ -52,7 +53,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/README.md b/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/README.md index 8128ce4ff59..b7775c0efd0 100644 --- a/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/README.md +++ b/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkresources.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/README.md b/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/README.md index 44571306303..dbc24b832d8 100644 --- a/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/README.md +++ b/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resolveprivatelinkserviceid.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := resolveprivatelinkserviceid.PrivateLinkResource{ // ... diff --git a/resource-manager/containerservice/2023-03-02-preview/snapshots/README.md b/resource-manager/containerservice/2023-03-02-preview/snapshots/README.md index 75c78c152b3..effae843adf 100644 --- a/resource-manager/containerservice/2023-03-02-preview/snapshots/README.md +++ b/resource-manager/containerservice/2023-03-02-preview/snapshots/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshots.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := snapshots.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-03-02-preview/trustedaccess/README.md b/resource-manager/containerservice/2023-03-02-preview/trustedaccess/README.md index 536c03c3b2c..5638d8d0a27 100644 --- a/resource-manager/containerservice/2023-03-02-preview/trustedaccess/README.md +++ b/resource-manager/containerservice/2023-03-02-preview/trustedaccess/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := trustedaccess.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.RoleBindingsList(ctx, id)` can be used to do batched pagination items, err := client.RoleBindingsListComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-04-02-preview/agentpools/README.md b/resource-manager/containerservice/2023-04-02-preview/agentpools/README.md index 3396d79ed85..beb88b8ed13 100644 --- a/resource-manager/containerservice/2023-04-02-preview/agentpools/README.md +++ b/resource-manager/containerservice/2023-04-02-preview/agentpools/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-04-02-preview/agentpools" ``` @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.GetAvailableAgentPoolVersions(ctx, id) if err != nil { @@ -113,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-04-02-preview/maintenanceconfigurations/README.md b/resource-manager/containerservice/2023-04-02-preview/maintenanceconfigurations/README.md index 99262c86506..bffd20b7f66 100644 --- a/resource-manager/containerservice/2023-04-02-preview/maintenanceconfigurations/README.md +++ b/resource-manager/containerservice/2023-04-02-preview/maintenanceconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-04-02-preview/maintenanceconfigurations" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.ListByManagedCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedClusterComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-04-02-preview/managedclusters/README.md b/resource-manager/containerservice/2023-04-02-preview/managedclusters/README.md index 42a874307f3..cc9f90e9220 100644 --- a/resource-manager/containerservice/2023-04-02-preview/managedclusters/README.md +++ b/resource-manager/containerservice/2023-04-02-preview/managedclusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-04-02-preview/managedclusters" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +37,7 @@ if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedCluster{ // ... @@ -53,7 +54,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.DeleteThenPoll(ctx, id, managedclusters.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -65,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id, managedclusters.DefaultDeleteOperationO ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.Get(ctx, id) if err != nil { @@ -129,7 +130,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.GetUpgradeProfile(ctx, id) if err != nil { @@ -145,7 +146,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -162,7 +163,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -179,7 +180,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterAdminCredentials(ctx, id, managedclusters.DefaultListClusterAdminCredentialsOperationOptions()) if err != nil { @@ -195,7 +196,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterMonitoringUserCredentials(ctx, id, managedclusters.DefaultListClusterMonitoringUserCredentialsOperationOptions()) if err != nil { @@ -211,7 +212,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterUserCredentials(ctx, id, managedclusters.DefaultListClusterUserCredentialsOperationOptions()) if err != nil { @@ -243,7 +244,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.ListOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.ListOutboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -260,7 +261,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedClusterAADProfile{ // ... @@ -277,7 +278,7 @@ if err := client.ResetAADProfileThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedClusterServicePrincipalProfile{ // ... @@ -294,7 +295,7 @@ if err := client.ResetServicePrincipalProfileThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { // handle the error @@ -306,7 +307,7 @@ if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.RotateServiceAccountSigningKeysThenPoll(ctx, id); err != nil { // handle the error @@ -318,7 +319,7 @@ if err := client.RotateServiceAccountSigningKeysThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.RunCommandRequest{ // ... @@ -335,7 +336,7 @@ if err := client.RunCommandThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -347,7 +348,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -359,7 +360,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.TagsObject{ // ... diff --git a/resource-manager/containerservice/2023-04-02-preview/managedclustersnapshots/README.md b/resource-manager/containerservice/2023-04-02-preview/managedclustersnapshots/README.md index 9f0120f132b..be44e68dc68 100644 --- a/resource-manager/containerservice/2023-04-02-preview/managedclustersnapshots/README.md +++ b/resource-manager/containerservice/2023-04-02-preview/managedclustersnapshots/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-04-02-preview/managedclustersnapshots" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclustersnapshots.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclustersnapshots.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-04-02-preview/privateendpointconnections/README.md b/resource-manager/containerservice/2023-04-02-preview/privateendpointconnections/README.md index 9a40c303ee1..bf1f09aef56 100644 --- a/resource-manager/containerservice/2023-04-02-preview/privateendpointconnections/README.md +++ b/resource-manager/containerservice/2023-04-02-preview/privateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-04-02-preview/privateendpointconnections" ``` @@ -52,7 +53,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/containerservice/2023-04-02-preview/privatelinkresources/README.md b/resource-manager/containerservice/2023-04-02-preview/privatelinkresources/README.md index d604f9fbbc6..08b3005a53c 100644 --- a/resource-manager/containerservice/2023-04-02-preview/privatelinkresources/README.md +++ b/resource-manager/containerservice/2023-04-02-preview/privatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-04-02-preview/privatelinkresources" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkresources.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/containerservice/2023-04-02-preview/resolveprivatelinkserviceid/README.md b/resource-manager/containerservice/2023-04-02-preview/resolveprivatelinkserviceid/README.md index 14e1154a519..799f2cb87a0 100644 --- a/resource-manager/containerservice/2023-04-02-preview/resolveprivatelinkserviceid/README.md +++ b/resource-manager/containerservice/2023-04-02-preview/resolveprivatelinkserviceid/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-04-02-preview/resolveprivatelinkserviceid" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resolveprivatelinkserviceid.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := resolveprivatelinkserviceid.PrivateLinkResource{ // ... diff --git a/resource-manager/containerservice/2023-04-02-preview/snapshots/README.md b/resource-manager/containerservice/2023-04-02-preview/snapshots/README.md index cdeea5276d8..d9a8a590292 100644 --- a/resource-manager/containerservice/2023-04-02-preview/snapshots/README.md +++ b/resource-manager/containerservice/2023-04-02-preview/snapshots/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-04-02-preview/snapshots" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshots.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := snapshots.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-04-02-preview/trustedaccess/README.md b/resource-manager/containerservice/2023-04-02-preview/trustedaccess/README.md index 9ed92c1a2ae..b4217980ee6 100644 --- a/resource-manager/containerservice/2023-04-02-preview/trustedaccess/README.md +++ b/resource-manager/containerservice/2023-04-02-preview/trustedaccess/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-04-02-preview/trustedaccess" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := trustedaccess.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.RoleBindingsList(ctx, id)` can be used to do batched pagination items, err := client.RoleBindingsListComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-06-02-preview/agentpools/README.md b/resource-manager/containerservice/2023-06-02-preview/agentpools/README.md index a704751a70a..5aacd4d4779 100644 --- a/resource-manager/containerservice/2023-06-02-preview/agentpools/README.md +++ b/resource-manager/containerservice/2023-06-02-preview/agentpools/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-06-02-preview/agentpools" ``` @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.GetAvailableAgentPoolVersions(ctx, id) if err != nil { @@ -113,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-06-02-preview/maintenanceconfigurations/README.md b/resource-manager/containerservice/2023-06-02-preview/maintenanceconfigurations/README.md index 487d3aa4f59..bd9d5cc01bd 100644 --- a/resource-manager/containerservice/2023-06-02-preview/maintenanceconfigurations/README.md +++ b/resource-manager/containerservice/2023-06-02-preview/maintenanceconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-06-02-preview/maintenanceconfigurations" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.ListByManagedCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedClusterComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-06-02-preview/managedclusters/README.md b/resource-manager/containerservice/2023-06-02-preview/managedclusters/README.md index a027fdc465b..2b9b1e1f983 100644 --- a/resource-manager/containerservice/2023-06-02-preview/managedclusters/README.md +++ b/resource-manager/containerservice/2023-06-02-preview/managedclusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-06-02-preview/managedclusters" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +37,7 @@ if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedCluster{ // ... @@ -53,7 +54,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.DeleteThenPoll(ctx, id, managedclusters.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -65,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id, managedclusters.DefaultDeleteOperationO ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.Get(ctx, id) if err != nil { @@ -161,7 +162,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.GetUpgradeProfile(ctx, id) if err != nil { @@ -177,7 +178,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -194,7 +195,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -211,7 +212,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterAdminCredentials(ctx, id, managedclusters.DefaultListClusterAdminCredentialsOperationOptions()) if err != nil { @@ -227,7 +228,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterMonitoringUserCredentials(ctx, id, managedclusters.DefaultListClusterMonitoringUserCredentialsOperationOptions()) if err != nil { @@ -243,7 +244,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterUserCredentials(ctx, id, managedclusters.DefaultListClusterUserCredentialsOperationOptions()) if err != nil { @@ -292,7 +293,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.ListMeshUpgradeProfiles(ctx, id)` can be used to do batched pagination items, err := client.ListMeshUpgradeProfilesComplete(ctx, id) @@ -309,7 +310,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.ListOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.ListOutboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -326,7 +327,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedClusterAADProfile{ // ... @@ -343,7 +344,7 @@ if err := client.ResetAADProfileThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedClusterServicePrincipalProfile{ // ... @@ -360,7 +361,7 @@ if err := client.ResetServicePrincipalProfileThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { // handle the error @@ -372,7 +373,7 @@ if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.RotateServiceAccountSigningKeysThenPoll(ctx, id); err != nil { // handle the error @@ -384,7 +385,7 @@ if err := client.RotateServiceAccountSigningKeysThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.RunCommandRequest{ // ... @@ -401,7 +402,7 @@ if err := client.RunCommandThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -413,7 +414,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -425,7 +426,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.TagsObject{ // ... diff --git a/resource-manager/containerservice/2023-06-02-preview/managedclustersnapshots/README.md b/resource-manager/containerservice/2023-06-02-preview/managedclustersnapshots/README.md index 40365783cae..81c4bc898fb 100644 --- a/resource-manager/containerservice/2023-06-02-preview/managedclustersnapshots/README.md +++ b/resource-manager/containerservice/2023-06-02-preview/managedclustersnapshots/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-06-02-preview/managedclustersnapshots" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclustersnapshots.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclustersnapshots.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-06-02-preview/privateendpointconnections/README.md b/resource-manager/containerservice/2023-06-02-preview/privateendpointconnections/README.md index 08a0d5085fd..538d57050f6 100644 --- a/resource-manager/containerservice/2023-06-02-preview/privateendpointconnections/README.md +++ b/resource-manager/containerservice/2023-06-02-preview/privateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-06-02-preview/privateendpointconnections" ``` @@ -52,7 +53,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/containerservice/2023-06-02-preview/privatelinkresources/README.md b/resource-manager/containerservice/2023-06-02-preview/privatelinkresources/README.md index e99c7b4c489..1a0bd6fb73a 100644 --- a/resource-manager/containerservice/2023-06-02-preview/privatelinkresources/README.md +++ b/resource-manager/containerservice/2023-06-02-preview/privatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-06-02-preview/privatelinkresources" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkresources.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/containerservice/2023-06-02-preview/resolveprivatelinkserviceid/README.md b/resource-manager/containerservice/2023-06-02-preview/resolveprivatelinkserviceid/README.md index 713b0ac32d5..5257ffa8abf 100644 --- a/resource-manager/containerservice/2023-06-02-preview/resolveprivatelinkserviceid/README.md +++ b/resource-manager/containerservice/2023-06-02-preview/resolveprivatelinkserviceid/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-06-02-preview/resolveprivatelinkserviceid" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resolveprivatelinkserviceid.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := resolveprivatelinkserviceid.PrivateLinkResource{ // ... diff --git a/resource-manager/containerservice/2023-06-02-preview/snapshots/README.md b/resource-manager/containerservice/2023-06-02-preview/snapshots/README.md index 60126fe065b..d29288eb083 100644 --- a/resource-manager/containerservice/2023-06-02-preview/snapshots/README.md +++ b/resource-manager/containerservice/2023-06-02-preview/snapshots/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-06-02-preview/snapshots" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshots.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := snapshots.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-06-02-preview/trustedaccess/README.md b/resource-manager/containerservice/2023-06-02-preview/trustedaccess/README.md index 0bd28a8b6ec..0222350b391 100644 --- a/resource-manager/containerservice/2023-06-02-preview/trustedaccess/README.md +++ b/resource-manager/containerservice/2023-06-02-preview/trustedaccess/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-06-02-preview/trustedaccess" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := trustedaccess.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.RoleBindingsList(ctx, id)` can be used to do batched pagination items, err := client.RoleBindingsListComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-10-01/agentpools/README.md b/resource-manager/containerservice/2023-10-01/agentpools/README.md index e347550106d..ff972fc7395 100644 --- a/resource-manager/containerservice/2023-10-01/agentpools/README.md +++ b/resource-manager/containerservice/2023-10-01/agentpools/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-01/agentpools" ``` @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.GetAvailableAgentPoolVersions(ctx, id) if err != nil { @@ -113,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-10-01/maintenanceconfigurations/README.md b/resource-manager/containerservice/2023-10-01/maintenanceconfigurations/README.md index 6c11a18f143..946bf8c09e8 100644 --- a/resource-manager/containerservice/2023-10-01/maintenanceconfigurations/README.md +++ b/resource-manager/containerservice/2023-10-01/maintenanceconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-01/maintenanceconfigurations" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.ListByManagedCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedClusterComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-10-01/managedclusters/README.md b/resource-manager/containerservice/2023-10-01/managedclusters/README.md index cffb42eaca2..5460d4d797c 100644 --- a/resource-manager/containerservice/2023-10-01/managedclusters/README.md +++ b/resource-manager/containerservice/2023-10-01/managedclusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-01/managedclusters" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +37,7 @@ if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedCluster{ // ... @@ -53,7 +54,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.Get(ctx, id) if err != nil { @@ -161,7 +162,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.GetUpgradeProfile(ctx, id) if err != nil { @@ -177,7 +178,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -194,7 +195,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -211,7 +212,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterAdminCredentials(ctx, id, managedclusters.DefaultListClusterAdminCredentialsOperationOptions()) if err != nil { @@ -227,7 +228,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterMonitoringUserCredentials(ctx, id, managedclusters.DefaultListClusterMonitoringUserCredentialsOperationOptions()) if err != nil { @@ -243,7 +244,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.ListClusterUserCredentials(ctx, id, managedclusters.DefaultListClusterUserCredentialsOperationOptions()) if err != nil { @@ -292,7 +293,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.ListMeshUpgradeProfiles(ctx, id)` can be used to do batched pagination items, err := client.ListMeshUpgradeProfilesComplete(ctx, id) @@ -309,7 +310,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.ListOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.ListOutboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -326,7 +327,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedClusterAADProfile{ // ... @@ -343,7 +344,7 @@ if err := client.ResetAADProfileThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.ManagedClusterServicePrincipalProfile{ // ... @@ -360,7 +361,7 @@ if err := client.ResetServicePrincipalProfileThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { // handle the error @@ -372,7 +373,7 @@ if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.RotateServiceAccountSigningKeysThenPoll(ctx, id); err != nil { // handle the error @@ -384,7 +385,7 @@ if err := client.RotateServiceAccountSigningKeysThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.RunCommandRequest{ // ... @@ -401,7 +402,7 @@ if err := client.RunCommandThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -413,7 +414,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -425,7 +426,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedclusters.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := managedclusters.TagsObject{ // ... diff --git a/resource-manager/containerservice/2023-10-01/privateendpointconnections/README.md b/resource-manager/containerservice/2023-10-01/privateendpointconnections/README.md index 7ed10cc3ad5..2966e0674f7 100644 --- a/resource-manager/containerservice/2023-10-01/privateendpointconnections/README.md +++ b/resource-manager/containerservice/2023-10-01/privateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-01/privateendpointconnections" ``` @@ -52,7 +53,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/containerservice/2023-10-01/privatelinkresources/README.md b/resource-manager/containerservice/2023-10-01/privatelinkresources/README.md index 99b7589c2a9..becf0f8f0e2 100644 --- a/resource-manager/containerservice/2023-10-01/privatelinkresources/README.md +++ b/resource-manager/containerservice/2023-10-01/privatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-01/privatelinkresources" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkresources.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/containerservice/2023-10-01/resolveprivatelinkserviceid/README.md b/resource-manager/containerservice/2023-10-01/resolveprivatelinkserviceid/README.md index b2dda8433d2..39481674e6f 100644 --- a/resource-manager/containerservice/2023-10-01/resolveprivatelinkserviceid/README.md +++ b/resource-manager/containerservice/2023-10-01/resolveprivatelinkserviceid/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-01/resolveprivatelinkserviceid" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resolveprivatelinkserviceid.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") payload := resolveprivatelinkserviceid.PrivateLinkResource{ // ... diff --git a/resource-manager/containerservice/2023-10-01/snapshots/README.md b/resource-manager/containerservice/2023-10-01/snapshots/README.md index efc12c0ae9e..9a465d1dd0b 100644 --- a/resource-manager/containerservice/2023-10-01/snapshots/README.md +++ b/resource-manager/containerservice/2023-10-01/snapshots/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-01/snapshots" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshots.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := snapshots.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-10-01/trustedaccess/README.md b/resource-manager/containerservice/2023-10-01/trustedaccess/README.md index 136e38cb2ff..ac206b8902b 100644 --- a/resource-manager/containerservice/2023-10-01/trustedaccess/README.md +++ b/resource-manager/containerservice/2023-10-01/trustedaccess/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-01/trustedaccess" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := trustedaccess.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") // alternatively `client.RoleBindingsList(ctx, id)` can be used to do batched pagination items, err := client.RoleBindingsListComplete(ctx, id) diff --git a/resource-manager/containerservice/2023-10-15/fleets/README.md b/resource-manager/containerservice/2023-10-15/fleets/README.md index 7cbffac652f..af40d17e8fa 100644 --- a/resource-manager/containerservice/2023-10-15/fleets/README.md +++ b/resource-manager/containerservice/2023-10-15/fleets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-15/fleets" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fleets.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := fleets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/README.md b/resource-manager/cosmosdb/2022-05-15/cosmosdb/README.md index dec0f8253b6..8c3eddd8355 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/README.md +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb" ``` @@ -482,7 +483,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.DatabaseAccountsList(ctx, id) if err != nil { @@ -498,7 +499,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.DatabaseAccountsListByResourceGroup(ctx, id) if err != nil { @@ -978,7 +979,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.LocationsList(ctx, id) if err != nil { diff --git a/resource-manager/cosmosdb/2022-05-15/managedcassandras/README.md b/resource-manager/cosmosdb/2022-05-15/managedcassandras/README.md index c2d361c87c6..f9a24767161 100644 --- a/resource-manager/cosmosdb/2022-05-15/managedcassandras/README.md +++ b/resource-manager/cosmosdb/2022-05-15/managedcassandras/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/managedcassandras" ``` @@ -98,7 +99,7 @@ if err := client.CassandraClustersInvokeCommandThenPoll(ctx, id, payload); err ! ```go ctx := context.TODO() -id := managedcassandras.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.CassandraClustersListByResourceGroup(ctx, id) if err != nil { @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedcassandras.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.CassandraClustersListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/cosmosdb/2022-05-15/restorables/README.md b/resource-manager/cosmosdb/2022-05-15/restorables/README.md index 559b5b0656e..d01167eb381 100644 --- a/resource-manager/cosmosdb/2022-05-15/restorables/README.md +++ b/resource-manager/cosmosdb/2022-05-15/restorables/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/restorables" ``` @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorables.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.RestorableDatabaseAccountsList(ctx, id) if err != nil { diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/README.md b/resource-manager/cosmosdb/2022-11-15/cosmosdb/README.md index e6a06ca1239..c96a35c4f33 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/README.md +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/cosmosdb" ``` @@ -482,7 +483,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.DatabaseAccountsList(ctx, id) if err != nil { @@ -498,7 +499,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.DatabaseAccountsListByResourceGroup(ctx, id) if err != nil { @@ -978,7 +979,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.LocationsList(ctx, id) if err != nil { diff --git a/resource-manager/cosmosdb/2022-11-15/managedcassandras/README.md b/resource-manager/cosmosdb/2022-11-15/managedcassandras/README.md index ad4c11b6c15..a3766c37542 100644 --- a/resource-manager/cosmosdb/2022-11-15/managedcassandras/README.md +++ b/resource-manager/cosmosdb/2022-11-15/managedcassandras/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/managedcassandras" ``` @@ -98,7 +99,7 @@ if err := client.CassandraClustersInvokeCommandThenPoll(ctx, id, payload); err ! ```go ctx := context.TODO() -id := managedcassandras.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.CassandraClustersListByResourceGroup(ctx, id) if err != nil { @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedcassandras.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.CassandraClustersListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/cosmosdb/2022-11-15/restorables/README.md b/resource-manager/cosmosdb/2022-11-15/restorables/README.md index 15f764253a9..0ec788a8d32 100644 --- a/resource-manager/cosmosdb/2022-11-15/restorables/README.md +++ b/resource-manager/cosmosdb/2022-11-15/restorables/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/restorables" ``` @@ -74,7 +75,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorables.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.RestorableDatabaseAccountsList(ctx, id) if err != nil { diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/README.md b/resource-manager/cosmosdb/2023-04-15/cosmosdb/README.md index c3afe5bd7db..7af7cc8799e 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/README.md +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/cosmosdb" ``` @@ -482,7 +483,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.DatabaseAccountsList(ctx, id) if err != nil { @@ -498,7 +499,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.DatabaseAccountsListByResourceGroup(ctx, id) if err != nil { @@ -978,7 +979,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.LocationsList(ctx, id) if err != nil { diff --git a/resource-manager/cosmosdb/2023-04-15/managedcassandras/README.md b/resource-manager/cosmosdb/2023-04-15/managedcassandras/README.md index 472946e887b..d80001c75f2 100644 --- a/resource-manager/cosmosdb/2023-04-15/managedcassandras/README.md +++ b/resource-manager/cosmosdb/2023-04-15/managedcassandras/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras" ``` @@ -98,7 +99,7 @@ if err := client.CassandraClustersInvokeCommandThenPoll(ctx, id, payload); err ! ```go ctx := context.TODO() -id := managedcassandras.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.CassandraClustersListByResourceGroup(ctx, id) if err != nil { @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedcassandras.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.CassandraClustersListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/cosmosdb/2023-04-15/restorables/README.md b/resource-manager/cosmosdb/2023-04-15/restorables/README.md index 0102fe710ed..78f69e6dee8 100644 --- a/resource-manager/cosmosdb/2023-04-15/restorables/README.md +++ b/resource-manager/cosmosdb/2023-04-15/restorables/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/restorables" ``` @@ -74,7 +75,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorables.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.RestorableDatabaseAccountsList(ctx, id) if err != nil { diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/README.md b/resource-manager/cosmosdb/2023-09-15/cosmosdb/README.md index f173ce0934b..97786574f00 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/README.md +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-09-15/cosmosdb" ``` @@ -482,7 +483,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.DatabaseAccountsList(ctx, id) if err != nil { @@ -498,7 +499,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.DatabaseAccountsListByResourceGroup(ctx, id) if err != nil { @@ -978,7 +979,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.LocationsList(ctx, id) if err != nil { diff --git a/resource-manager/cosmosdb/2023-09-15/managedcassandras/README.md b/resource-manager/cosmosdb/2023-09-15/managedcassandras/README.md index 3cea95ca349..1620ddc5dbc 100644 --- a/resource-manager/cosmosdb/2023-09-15/managedcassandras/README.md +++ b/resource-manager/cosmosdb/2023-09-15/managedcassandras/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-09-15/managedcassandras" ``` @@ -98,7 +99,7 @@ if err := client.CassandraClustersInvokeCommandThenPoll(ctx, id, payload); err ! ```go ctx := context.TODO() -id := managedcassandras.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.CassandraClustersListByResourceGroup(ctx, id) if err != nil { @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedcassandras.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.CassandraClustersListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/cosmosdb/2023-09-15/restorables/README.md b/resource-manager/cosmosdb/2023-09-15/restorables/README.md index c50f468ca2b..46006a7ea26 100644 --- a/resource-manager/cosmosdb/2023-09-15/restorables/README.md +++ b/resource-manager/cosmosdb/2023-09-15/restorables/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-09-15/restorables" ``` @@ -74,7 +75,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorables.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.RestorableDatabaseAccountsList(ctx, id) if err != nil { diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/README.md b/resource-manager/cosmosdb/2023-11-15/cosmosdb/README.md index f0600e0a3c5..86c663c8fcf 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/README.md +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-11-15/cosmosdb" ``` @@ -482,7 +483,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.DatabaseAccountsList(ctx, id) if err != nil { @@ -498,7 +499,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.DatabaseAccountsListByResourceGroup(ctx, id) if err != nil { @@ -978,7 +979,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.LocationsList(ctx, id) if err != nil { diff --git a/resource-manager/cosmosdb/2023-11-15/managedcassandras/README.md b/resource-manager/cosmosdb/2023-11-15/managedcassandras/README.md index 5d558f9d4bc..02e70da42c4 100644 --- a/resource-manager/cosmosdb/2023-11-15/managedcassandras/README.md +++ b/resource-manager/cosmosdb/2023-11-15/managedcassandras/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-11-15/managedcassandras" ``` @@ -98,7 +99,7 @@ if err := client.CassandraClustersInvokeCommandThenPoll(ctx, id, payload); err ! ```go ctx := context.TODO() -id := managedcassandras.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.CassandraClustersListByResourceGroup(ctx, id) if err != nil { @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedcassandras.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.CassandraClustersListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/cosmosdb/2023-11-15/restorables/README.md b/resource-manager/cosmosdb/2023-11-15/restorables/README.md index bb468f50c65..f39363c0aad 100644 --- a/resource-manager/cosmosdb/2023-11-15/restorables/README.md +++ b/resource-manager/cosmosdb/2023-11-15/restorables/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-11-15/restorables" ``` @@ -74,7 +75,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorables.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.RestorableDatabaseAccountsList(ctx, id) if err != nil { diff --git a/resource-manager/costmanagement/2021-10-01/alerts/README.md b/resource-manager/costmanagement/2021-10-01/alerts/README.md index ede65ba6a2c..9528d6a6a79 100644 --- a/resource-manager/costmanagement/2021-10-01/alerts/README.md +++ b/resource-manager/costmanagement/2021-10-01/alerts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/alerts" ``` @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alerts.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/costmanagement/2021-10-01/dimensions/README.md b/resource-manager/costmanagement/2021-10-01/dimensions/README.md index 77f2a8e212a..f31536f783e 100644 --- a/resource-manager/costmanagement/2021-10-01/dimensions/README.md +++ b/resource-manager/costmanagement/2021-10-01/dimensions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/dimensions" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dimensions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, dimensions.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/costmanagement/2021-10-01/exports/README.md b/resource-manager/costmanagement/2021-10-01/exports/README.md index fa0670fe30c..77f79d25d05 100644 --- a/resource-manager/costmanagement/2021-10-01/exports/README.md +++ b/resource-manager/costmanagement/2021-10-01/exports/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports" ``` @@ -109,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := exports.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, exports.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/costmanagement/2021-10-01/forecast/README.md b/resource-manager/costmanagement/2021-10-01/forecast/README.md index 26101333f02..ccbaa81d89d 100644 --- a/resource-manager/costmanagement/2021-10-01/forecast/README.md +++ b/resource-manager/costmanagement/2021-10-01/forecast/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/forecast" ``` @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := forecast.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := forecast.ForecastDefinition{ // ... diff --git a/resource-manager/costmanagement/2021-10-01/query/README.md b/resource-manager/costmanagement/2021-10-01/query/README.md index 744d198eae9..dd9f38233dd 100644 --- a/resource-manager/costmanagement/2021-10-01/query/README.md +++ b/resource-manager/costmanagement/2021-10-01/query/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/query" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := query.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := query.QueryDefinition{ // ... diff --git a/resource-manager/costmanagement/2021-10-01/usagedetails/README.md b/resource-manager/costmanagement/2021-10-01/usagedetails/README.md index 4d26b11b52f..0afffb27a80 100644 --- a/resource-manager/costmanagement/2021-10-01/usagedetails/README.md +++ b/resource-manager/costmanagement/2021-10-01/usagedetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/usagedetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := usagedetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := usagedetails.GenerateDetailedCostReportDefinition{ // ... diff --git a/resource-manager/costmanagement/2021-10-01/views/README.md b/resource-manager/costmanagement/2021-10-01/views/README.md index 2cd5e8aad11..eb00e1b8644 100644 --- a/resource-manager/costmanagement/2021-10-01/views/README.md +++ b/resource-manager/costmanagement/2021-10-01/views/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/views" ``` @@ -147,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := views.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByScope(ctx, id)` can be used to do batched pagination items, err := client.ListByScopeComplete(ctx, id) diff --git a/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/README.md b/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/README.md index 1f6545cacd0..64b789b2719 100644 --- a/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/README.md +++ b/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions" ``` @@ -44,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := scheduledactions.CheckNameAvailabilityRequest{ // ... @@ -220,7 +221,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scheduledactions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByScope(ctx, id, scheduledactions.DefaultListByScopeOperationOptions())` can be used to do batched pagination items, err := client.ListByScopeComplete(ctx, id, scheduledactions.DefaultListByScopeOperationOptions()) diff --git a/resource-manager/costmanagement/2022-10-01/alerts/README.md b/resource-manager/costmanagement/2022-10-01/alerts/README.md index 94d06bb82a3..af9020d92f9 100644 --- a/resource-manager/costmanagement/2022-10-01/alerts/README.md +++ b/resource-manager/costmanagement/2022-10-01/alerts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/alerts" ``` @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alerts.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/costmanagement/2022-10-01/benefitrecommendations/README.md b/resource-manager/costmanagement/2022-10-01/benefitrecommendations/README.md index c99f1dee1e1..99a31cd305a 100644 --- a/resource-manager/costmanagement/2022-10-01/benefitrecommendations/README.md +++ b/resource-manager/costmanagement/2022-10-01/benefitrecommendations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/benefitrecommendations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := benefitrecommendations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, benefitrecommendations.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, benefitrecommendations.DefaultListOperationOptions()) diff --git a/resource-manager/costmanagement/2022-10-01/costdetails/README.md b/resource-manager/costmanagement/2022-10-01/costdetails/README.md index 6a297b87001..01e386b57e2 100644 --- a/resource-manager/costmanagement/2022-10-01/costdetails/README.md +++ b/resource-manager/costmanagement/2022-10-01/costdetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/costdetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := costdetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := costdetails.GenerateCostDetailsReportRequestDefinition{ // ... diff --git a/resource-manager/costmanagement/2022-10-01/dimensions/README.md b/resource-manager/costmanagement/2022-10-01/dimensions/README.md index 575ddf6844c..9b79e084a8d 100644 --- a/resource-manager/costmanagement/2022-10-01/dimensions/README.md +++ b/resource-manager/costmanagement/2022-10-01/dimensions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/dimensions" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dimensions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, dimensions.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/costmanagement/2022-10-01/exports/README.md b/resource-manager/costmanagement/2022-10-01/exports/README.md index fa39f012e6f..5bd7c94c63b 100644 --- a/resource-manager/costmanagement/2022-10-01/exports/README.md +++ b/resource-manager/costmanagement/2022-10-01/exports/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/exports" ``` @@ -109,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := exports.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, exports.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/costmanagement/2022-10-01/forecast/README.md b/resource-manager/costmanagement/2022-10-01/forecast/README.md index 4e9752d9c24..c5a75b9db1b 100644 --- a/resource-manager/costmanagement/2022-10-01/forecast/README.md +++ b/resource-manager/costmanagement/2022-10-01/forecast/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/forecast" ``` @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := forecast.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := forecast.ForecastDefinition{ // ... diff --git a/resource-manager/costmanagement/2022-10-01/query/README.md b/resource-manager/costmanagement/2022-10-01/query/README.md index 50371fd2f31..28dcb9843db 100644 --- a/resource-manager/costmanagement/2022-10-01/query/README.md +++ b/resource-manager/costmanagement/2022-10-01/query/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/query" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := query.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := query.QueryDefinition{ // ... diff --git a/resource-manager/costmanagement/2022-10-01/scheduledactions/README.md b/resource-manager/costmanagement/2022-10-01/scheduledactions/README.md index 4c14676eeb8..3d04f3fdc89 100644 --- a/resource-manager/costmanagement/2022-10-01/scheduledactions/README.md +++ b/resource-manager/costmanagement/2022-10-01/scheduledactions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions" ``` @@ -44,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := scheduledactions.CheckNameAvailabilityRequest{ // ... @@ -188,7 +189,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scheduledactions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByScope(ctx, id, scheduledactions.DefaultListByScopeOperationOptions())` can be used to do batched pagination items, err := client.ListByScopeComplete(ctx, id, scheduledactions.DefaultListByScopeOperationOptions()) diff --git a/resource-manager/costmanagement/2022-10-01/usagedetails/README.md b/resource-manager/costmanagement/2022-10-01/usagedetails/README.md index 6196dfb1942..76b24c1247e 100644 --- a/resource-manager/costmanagement/2022-10-01/usagedetails/README.md +++ b/resource-manager/costmanagement/2022-10-01/usagedetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/usagedetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := usagedetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := usagedetails.GenerateDetailedCostReportDefinition{ // ... diff --git a/resource-manager/costmanagement/2022-10-01/views/README.md b/resource-manager/costmanagement/2022-10-01/views/README.md index 57024c5e042..a6dfad987e0 100644 --- a/resource-manager/costmanagement/2022-10-01/views/README.md +++ b/resource-manager/costmanagement/2022-10-01/views/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views" ``` @@ -147,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := views.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByScope(ctx, id)` can be used to do batched pagination items, err := client.ListByScopeComplete(ctx, id) diff --git a/resource-manager/costmanagement/2023-03-01/alerts/README.md b/resource-manager/costmanagement/2023-03-01/alerts/README.md index d6914283102..9fc5ba7639f 100644 --- a/resource-manager/costmanagement/2023-03-01/alerts/README.md +++ b/resource-manager/costmanagement/2023-03-01/alerts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-03-01/alerts" ``` @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alerts.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/costmanagement/2023-03-01/benefitrecommendations/README.md b/resource-manager/costmanagement/2023-03-01/benefitrecommendations/README.md index 7e2999330db..011ce386460 100644 --- a/resource-manager/costmanagement/2023-03-01/benefitrecommendations/README.md +++ b/resource-manager/costmanagement/2023-03-01/benefitrecommendations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-03-01/benefitrecommendations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := benefitrecommendations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, benefitrecommendations.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, benefitrecommendations.DefaultListOperationOptions()) diff --git a/resource-manager/costmanagement/2023-03-01/costdetails/README.md b/resource-manager/costmanagement/2023-03-01/costdetails/README.md index b03af42c258..08c95115cb3 100644 --- a/resource-manager/costmanagement/2023-03-01/costdetails/README.md +++ b/resource-manager/costmanagement/2023-03-01/costdetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-03-01/costdetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := costdetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := costdetails.GenerateCostDetailsReportRequestDefinition{ // ... diff --git a/resource-manager/costmanagement/2023-03-01/dimensions/README.md b/resource-manager/costmanagement/2023-03-01/dimensions/README.md index 83fc8369a03..385fff00c57 100644 --- a/resource-manager/costmanagement/2023-03-01/dimensions/README.md +++ b/resource-manager/costmanagement/2023-03-01/dimensions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-03-01/dimensions" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dimensions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, dimensions.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/costmanagement/2023-03-01/exports/README.md b/resource-manager/costmanagement/2023-03-01/exports/README.md index 8dcaceaedbf..e04e9ca46b7 100644 --- a/resource-manager/costmanagement/2023-03-01/exports/README.md +++ b/resource-manager/costmanagement/2023-03-01/exports/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-03-01/exports" ``` @@ -109,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := exports.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, exports.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/costmanagement/2023-03-01/forecast/README.md b/resource-manager/costmanagement/2023-03-01/forecast/README.md index 8977af214f9..ee63d7f1c03 100644 --- a/resource-manager/costmanagement/2023-03-01/forecast/README.md +++ b/resource-manager/costmanagement/2023-03-01/forecast/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-03-01/forecast" ``` @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := forecast.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := forecast.ForecastDefinition{ // ... diff --git a/resource-manager/costmanagement/2023-03-01/query/README.md b/resource-manager/costmanagement/2023-03-01/query/README.md index 485f3ad630f..a9e4c9336ae 100644 --- a/resource-manager/costmanagement/2023-03-01/query/README.md +++ b/resource-manager/costmanagement/2023-03-01/query/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-03-01/query" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := query.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := query.QueryDefinition{ // ... diff --git a/resource-manager/costmanagement/2023-03-01/scheduledactions/README.md b/resource-manager/costmanagement/2023-03-01/scheduledactions/README.md index 0c7b86a271d..f4b74665d03 100644 --- a/resource-manager/costmanagement/2023-03-01/scheduledactions/README.md +++ b/resource-manager/costmanagement/2023-03-01/scheduledactions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-03-01/scheduledactions" ``` @@ -44,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := scheduledactions.CheckNameAvailabilityRequest{ // ... @@ -188,7 +189,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scheduledactions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByScope(ctx, id, scheduledactions.DefaultListByScopeOperationOptions())` can be used to do batched pagination items, err := client.ListByScopeComplete(ctx, id, scheduledactions.DefaultListByScopeOperationOptions()) diff --git a/resource-manager/costmanagement/2023-03-01/usagedetails/README.md b/resource-manager/costmanagement/2023-03-01/usagedetails/README.md index 64a653dbc0c..b92be498a7c 100644 --- a/resource-manager/costmanagement/2023-03-01/usagedetails/README.md +++ b/resource-manager/costmanagement/2023-03-01/usagedetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-03-01/usagedetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := usagedetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := usagedetails.GenerateDetailedCostReportDefinition{ // ... diff --git a/resource-manager/costmanagement/2023-03-01/views/README.md b/resource-manager/costmanagement/2023-03-01/views/README.md index 5a3d9bb23ce..0113d4d4bb6 100644 --- a/resource-manager/costmanagement/2023-03-01/views/README.md +++ b/resource-manager/costmanagement/2023-03-01/views/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-03-01/views" ``` @@ -147,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := views.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByScope(ctx, id)` can be used to do batched pagination items, err := client.ListByScopeComplete(ctx, id) diff --git a/resource-manager/costmanagement/2023-08-01/alerts/README.md b/resource-manager/costmanagement/2023-08-01/alerts/README.md index f4eb1a94dd2..f49c56e044f 100644 --- a/resource-manager/costmanagement/2023-08-01/alerts/README.md +++ b/resource-manager/costmanagement/2023-08-01/alerts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-08-01/alerts" ``` @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alerts.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/costmanagement/2023-08-01/benefitrecommendations/README.md b/resource-manager/costmanagement/2023-08-01/benefitrecommendations/README.md index 90e1bc04e37..2537ab022ad 100644 --- a/resource-manager/costmanagement/2023-08-01/benefitrecommendations/README.md +++ b/resource-manager/costmanagement/2023-08-01/benefitrecommendations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-08-01/benefitrecommendations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := benefitrecommendations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, benefitrecommendations.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, benefitrecommendations.DefaultListOperationOptions()) diff --git a/resource-manager/costmanagement/2023-08-01/budgets/README.md b/resource-manager/costmanagement/2023-08-01/budgets/README.md index c529b5cf66c..7d38a3d258a 100644 --- a/resource-manager/costmanagement/2023-08-01/budgets/README.md +++ b/resource-manager/costmanagement/2023-08-01/budgets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-08-01/budgets" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := budgets.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, budgets.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, budgets.DefaultListOperationOptions()) diff --git a/resource-manager/costmanagement/2023-08-01/costdetails/README.md b/resource-manager/costmanagement/2023-08-01/costdetails/README.md index a59d2beaad4..12fe9a4a3ed 100644 --- a/resource-manager/costmanagement/2023-08-01/costdetails/README.md +++ b/resource-manager/costmanagement/2023-08-01/costdetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-08-01/costdetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := costdetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := costdetails.GenerateCostDetailsReportRequestDefinition{ // ... diff --git a/resource-manager/costmanagement/2023-08-01/dimensions/README.md b/resource-manager/costmanagement/2023-08-01/dimensions/README.md index 6ecfd7908b8..df1be4a6c0c 100644 --- a/resource-manager/costmanagement/2023-08-01/dimensions/README.md +++ b/resource-manager/costmanagement/2023-08-01/dimensions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-08-01/dimensions" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dimensions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, dimensions.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/costmanagement/2023-08-01/exports/README.md b/resource-manager/costmanagement/2023-08-01/exports/README.md index b733bba69f7..48e34e65877 100644 --- a/resource-manager/costmanagement/2023-08-01/exports/README.md +++ b/resource-manager/costmanagement/2023-08-01/exports/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-08-01/exports" ``` @@ -109,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := exports.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, exports.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/costmanagement/2023-08-01/forecast/README.md b/resource-manager/costmanagement/2023-08-01/forecast/README.md index cb59a480910..a3d0096b045 100644 --- a/resource-manager/costmanagement/2023-08-01/forecast/README.md +++ b/resource-manager/costmanagement/2023-08-01/forecast/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-08-01/forecast" ``` @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := forecast.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := forecast.ForecastDefinition{ // ... diff --git a/resource-manager/costmanagement/2023-08-01/query/README.md b/resource-manager/costmanagement/2023-08-01/query/README.md index dfce5369399..96332f28b95 100644 --- a/resource-manager/costmanagement/2023-08-01/query/README.md +++ b/resource-manager/costmanagement/2023-08-01/query/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-08-01/query" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := query.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := query.QueryDefinition{ // ... diff --git a/resource-manager/costmanagement/2023-08-01/scheduledactions/README.md b/resource-manager/costmanagement/2023-08-01/scheduledactions/README.md index 3bff62bbf67..e86671c32cc 100644 --- a/resource-manager/costmanagement/2023-08-01/scheduledactions/README.md +++ b/resource-manager/costmanagement/2023-08-01/scheduledactions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-08-01/scheduledactions" ``` @@ -44,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := scheduledactions.CheckNameAvailabilityRequest{ // ... @@ -188,7 +189,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scheduledactions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByScope(ctx, id, scheduledactions.DefaultListByScopeOperationOptions())` can be used to do batched pagination items, err := client.ListByScopeComplete(ctx, id, scheduledactions.DefaultListByScopeOperationOptions()) diff --git a/resource-manager/costmanagement/2023-08-01/settings/README.md b/resource-manager/costmanagement/2023-08-01/settings/README.md index 999e0d19f9c..571f1bf3c32 100644 --- a/resource-manager/costmanagement/2023-08-01/settings/README.md +++ b/resource-manager/costmanagement/2023-08-01/settings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-08-01/settings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := settings.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := settings.Setting{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := settings.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.DeleteByScope(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := settings.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.GetByScope(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := settings.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/costmanagement/2023-08-01/usagedetails/README.md b/resource-manager/costmanagement/2023-08-01/usagedetails/README.md index b6c74393801..06565493128 100644 --- a/resource-manager/costmanagement/2023-08-01/usagedetails/README.md +++ b/resource-manager/costmanagement/2023-08-01/usagedetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-08-01/usagedetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := usagedetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := usagedetails.GenerateDetailedCostReportDefinition{ // ... diff --git a/resource-manager/costmanagement/2023-08-01/views/README.md b/resource-manager/costmanagement/2023-08-01/views/README.md index 9cffac711c4..3988518713c 100644 --- a/resource-manager/costmanagement/2023-08-01/views/README.md +++ b/resource-manager/costmanagement/2023-08-01/views/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-08-01/views" ``` @@ -147,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := views.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByScope(ctx, id)` can be used to do batched pagination items, err := client.ListByScopeComplete(ctx, id) diff --git a/resource-manager/costmanagement/2023-11-01/alerts/README.md b/resource-manager/costmanagement/2023-11-01/alerts/README.md index 7cd5bed587d..ba7f4025b29 100644 --- a/resource-manager/costmanagement/2023-11-01/alerts/README.md +++ b/resource-manager/costmanagement/2023-11-01/alerts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-11-01/alerts" ``` @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alerts.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/costmanagement/2023-11-01/benefitrecommendations/README.md b/resource-manager/costmanagement/2023-11-01/benefitrecommendations/README.md index 80b63f5af83..b1e40473f0c 100644 --- a/resource-manager/costmanagement/2023-11-01/benefitrecommendations/README.md +++ b/resource-manager/costmanagement/2023-11-01/benefitrecommendations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-11-01/benefitrecommendations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := benefitrecommendations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, benefitrecommendations.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, benefitrecommendations.DefaultListOperationOptions()) diff --git a/resource-manager/costmanagement/2023-11-01/budgets/README.md b/resource-manager/costmanagement/2023-11-01/budgets/README.md index 409c4923062..e39e40a4d96 100644 --- a/resource-manager/costmanagement/2023-11-01/budgets/README.md +++ b/resource-manager/costmanagement/2023-11-01/budgets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-11-01/budgets" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := budgets.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, budgets.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, budgets.DefaultListOperationOptions()) diff --git a/resource-manager/costmanagement/2023-11-01/costdetails/README.md b/resource-manager/costmanagement/2023-11-01/costdetails/README.md index 15f6874788b..17f96ddc789 100644 --- a/resource-manager/costmanagement/2023-11-01/costdetails/README.md +++ b/resource-manager/costmanagement/2023-11-01/costdetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-11-01/costdetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := costdetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := costdetails.GenerateCostDetailsReportRequestDefinition{ // ... diff --git a/resource-manager/costmanagement/2023-11-01/dimensions/README.md b/resource-manager/costmanagement/2023-11-01/dimensions/README.md index 7bfa6b0a924..23c321ee097 100644 --- a/resource-manager/costmanagement/2023-11-01/dimensions/README.md +++ b/resource-manager/costmanagement/2023-11-01/dimensions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-11-01/dimensions" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dimensions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, dimensions.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/costmanagement/2023-11-01/exports/README.md b/resource-manager/costmanagement/2023-11-01/exports/README.md index b29c64a6151..8618c948823 100644 --- a/resource-manager/costmanagement/2023-11-01/exports/README.md +++ b/resource-manager/costmanagement/2023-11-01/exports/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-11-01/exports" ``` @@ -109,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := exports.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, exports.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/costmanagement/2023-11-01/forecast/README.md b/resource-manager/costmanagement/2023-11-01/forecast/README.md index 4842c1587c0..6c8f427c0a8 100644 --- a/resource-manager/costmanagement/2023-11-01/forecast/README.md +++ b/resource-manager/costmanagement/2023-11-01/forecast/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-11-01/forecast" ``` @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := forecast.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := forecast.ForecastDefinition{ // ... diff --git a/resource-manager/costmanagement/2023-11-01/query/README.md b/resource-manager/costmanagement/2023-11-01/query/README.md index 19a02da115a..a10906a9743 100644 --- a/resource-manager/costmanagement/2023-11-01/query/README.md +++ b/resource-manager/costmanagement/2023-11-01/query/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-11-01/query" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := query.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := query.QueryDefinition{ // ... diff --git a/resource-manager/costmanagement/2023-11-01/scheduledactions/README.md b/resource-manager/costmanagement/2023-11-01/scheduledactions/README.md index 4ae85789b3c..50ddd62cd50 100644 --- a/resource-manager/costmanagement/2023-11-01/scheduledactions/README.md +++ b/resource-manager/costmanagement/2023-11-01/scheduledactions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-11-01/scheduledactions" ``` @@ -44,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := scheduledactions.CheckNameAvailabilityRequest{ // ... @@ -188,7 +189,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scheduledactions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByScope(ctx, id, scheduledactions.DefaultListByScopeOperationOptions())` can be used to do batched pagination items, err := client.ListByScopeComplete(ctx, id, scheduledactions.DefaultListByScopeOperationOptions()) diff --git a/resource-manager/costmanagement/2023-11-01/settings/README.md b/resource-manager/costmanagement/2023-11-01/settings/README.md index e73ba875284..b453005beef 100644 --- a/resource-manager/costmanagement/2023-11-01/settings/README.md +++ b/resource-manager/costmanagement/2023-11-01/settings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-11-01/settings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := settings.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := settings.Setting{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := settings.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.DeleteByScope(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := settings.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.GetByScope(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := settings.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/costmanagement/2023-11-01/usagedetails/README.md b/resource-manager/costmanagement/2023-11-01/usagedetails/README.md index fb3cb4d8a59..3c9999f8f31 100644 --- a/resource-manager/costmanagement/2023-11-01/usagedetails/README.md +++ b/resource-manager/costmanagement/2023-11-01/usagedetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-11-01/usagedetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := usagedetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := usagedetails.GenerateDetailedCostReportDefinition{ // ... diff --git a/resource-manager/costmanagement/2023-11-01/views/README.md b/resource-manager/costmanagement/2023-11-01/views/README.md index cc507669e1a..e53569661df 100644 --- a/resource-manager/costmanagement/2023-11-01/views/README.md +++ b/resource-manager/costmanagement/2023-11-01/views/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-11-01/views" ``` @@ -147,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := views.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByScope(ctx, id)` can be used to do batched pagination items, err := client.ListByScopeComplete(ctx, id) diff --git a/resource-manager/customproviders/2018-09-01-preview/associations/README.md b/resource-manager/customproviders/2018-09-01-preview/associations/README.md index 8c3d06e90b8..450578d5a14 100644 --- a/resource-manager/customproviders/2018-09-01-preview/associations/README.md +++ b/resource-manager/customproviders/2018-09-01-preview/associations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/associations" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := associations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/README.md b/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/README.md index ea2853e455b..54f03280f73 100644 --- a/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/README.md +++ b/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := customresourceprovider.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := customresourceprovider.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/dashboard/2022-08-01/grafanaresource/README.md b/resource-manager/dashboard/2022-08-01/grafanaresource/README.md index a8c4cc7a8c8..1d35eac65c6 100644 --- a/resource-manager/dashboard/2022-08-01/grafanaresource/README.md +++ b/resource-manager/dashboard/2022-08-01/grafanaresource/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := grafanaresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.GrafanaList(ctx, id)` can be used to do batched pagination items, err := client.GrafanaListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := grafanaresource.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.GrafanaListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.GrafanaListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/dashboard/2023-09-01/grafanaresource/README.md b/resource-manager/dashboard/2023-09-01/grafanaresource/README.md index ffc99f2fd54..a4c1332bed3 100644 --- a/resource-manager/dashboard/2023-09-01/grafanaresource/README.md +++ b/resource-manager/dashboard/2023-09-01/grafanaresource/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource" ``` @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := grafanaresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.GrafanaList(ctx, id)` can be used to do batched pagination items, err := client.GrafanaListComplete(ctx, id) @@ -102,7 +103,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := grafanaresource.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.GrafanaListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.GrafanaListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/databoxedge/2022-03-01/availableskus/README.md b/resource-manager/databoxedge/2022-03-01/availableskus/README.md index ae73f9e588d..c9f455e4eb8 100644 --- a/resource-manager/databoxedge/2022-03-01/availableskus/README.md +++ b/resource-manager/databoxedge/2022-03-01/availableskus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/availableskus" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := availableskus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/databoxedge/2022-03-01/devices/README.md b/resource-manager/databoxedge/2022-03-01/devices/README.md index a33c222f75a..b409deb7f28 100644 --- a/resource-manager/databoxedge/2022-03-01/devices/README.md +++ b/resource-manager/databoxedge/2022-03-01/devices/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices" ``` @@ -178,7 +179,7 @@ if err := client.InstallUpdatesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := devices.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, devices.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, devices.DefaultListByResourceGroupOperationOptions()) @@ -195,7 +196,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := devices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, devices.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, devices.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/databoxedge/2023-07-01/availableskus/README.md b/resource-manager/databoxedge/2023-07-01/availableskus/README.md index d1af5b99c34..a9066f3e71b 100644 --- a/resource-manager/databoxedge/2023-07-01/availableskus/README.md +++ b/resource-manager/databoxedge/2023-07-01/availableskus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2023-07-01/availableskus" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := availableskus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/databoxedge/2023-07-01/devices/README.md b/resource-manager/databoxedge/2023-07-01/devices/README.md index 5aa2dc8ff3f..df4860a4e76 100644 --- a/resource-manager/databoxedge/2023-07-01/devices/README.md +++ b/resource-manager/databoxedge/2023-07-01/devices/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2023-07-01/devices" ``` @@ -178,7 +179,7 @@ if err := client.InstallUpdatesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := devices.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, devices.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, devices.DefaultListByResourceGroupOperationOptions()) @@ -195,7 +196,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := devices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, devices.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, devices.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/databoxedge/2023-12-01/availableskus/README.md b/resource-manager/databoxedge/2023-12-01/availableskus/README.md index 344f1788ed8..b454236c8b0 100644 --- a/resource-manager/databoxedge/2023-12-01/availableskus/README.md +++ b/resource-manager/databoxedge/2023-12-01/availableskus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2023-12-01/availableskus" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := availableskus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/databoxedge/2023-12-01/devices/README.md b/resource-manager/databoxedge/2023-12-01/devices/README.md index 1e73048e002..942b609023d 100644 --- a/resource-manager/databoxedge/2023-12-01/devices/README.md +++ b/resource-manager/databoxedge/2023-12-01/devices/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2023-12-01/devices" ``` @@ -178,7 +179,7 @@ if err := client.InstallUpdatesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := devices.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, devices.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, devices.DefaultListByResourceGroupOperationOptions()) @@ -195,7 +196,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := devices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, devices.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, devices.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/databricks/2022-04-01-preview/accessconnector/README.md b/resource-manager/databricks/2022-04-01-preview/accessconnector/README.md index d1b7a697d4c..a4c34b7d412 100644 --- a/resource-manager/databricks/2022-04-01-preview/accessconnector/README.md +++ b/resource-manager/databricks/2022-04-01-preview/accessconnector/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/accessconnector" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accessconnector.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := accessconnector.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/databricks/2022-04-01-preview/workspaces/README.md b/resource-manager/databricks/2022-04-01-preview/workspaces/README.md index c473e0a8a4c..254a91dd535 100644 --- a/resource-manager/databricks/2022-04-01-preview/workspaces/README.md +++ b/resource-manager/databricks/2022-04-01-preview/workspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/databricks/2022-10-01-preview/accessconnector/README.md b/resource-manager/databricks/2022-10-01-preview/accessconnector/README.md index b38dad1fa24..29a35b84b6e 100644 --- a/resource-manager/databricks/2022-10-01-preview/accessconnector/README.md +++ b/resource-manager/databricks/2022-10-01-preview/accessconnector/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accessconnector.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := accessconnector.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/databricks/2023-02-01/workspaces/README.md b/resource-manager/databricks/2023-02-01/workspaces/README.md index eefc0fa3be5..c9da1471518 100644 --- a/resource-manager/databricks/2023-02-01/workspaces/README.md +++ b/resource-manager/databricks/2023-02-01/workspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2023-02-01/workspaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/databricks/2023-05-01/accessconnector/README.md b/resource-manager/databricks/2023-05-01/accessconnector/README.md index d4c9774a1ef..737719690b3 100644 --- a/resource-manager/databricks/2023-05-01/accessconnector/README.md +++ b/resource-manager/databricks/2023-05-01/accessconnector/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2023-05-01/accessconnector" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accessconnector.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := accessconnector.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/datadog/2021-03-01/agreements/README.md b/resource-manager/datadog/2021-03-01/agreements/README.md index 393c704ba32..90529f8a202 100644 --- a/resource-manager/datadog/2021-03-01/agreements/README.md +++ b/resource-manager/datadog/2021-03-01/agreements/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := agreements.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := agreements.DatadogAgreementResource{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agreements.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.MarketplaceAgreementsList(ctx, id)` can be used to do batched pagination items, err := client.MarketplaceAgreementsListComplete(ctx, id) diff --git a/resource-manager/datadog/2021-03-01/monitorsresource/README.md b/resource-manager/datadog/2021-03-01/monitorsresource/README.md index e85fd08826d..72f406547f0 100644 --- a/resource-manager/datadog/2021-03-01/monitorsresource/README.md +++ b/resource-manager/datadog/2021-03-01/monitorsresource/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := monitorsresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.MonitorsList(ctx, id)` can be used to do batched pagination items, err := client.MonitorsListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitorsresource.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.MonitorsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.MonitorsListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/datadog/2022-06-01/agreements/README.md b/resource-manager/datadog/2022-06-01/agreements/README.md index e3b91956cdd..95fbec032e0 100644 --- a/resource-manager/datadog/2022-06-01/agreements/README.md +++ b/resource-manager/datadog/2022-06-01/agreements/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2022-06-01/agreements" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := agreements.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := agreements.DatadogAgreementResource{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agreements.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.MarketplaceAgreementsList(ctx, id)` can be used to do batched pagination items, err := client.MarketplaceAgreementsListComplete(ctx, id) diff --git a/resource-manager/datadog/2022-06-01/monitorsresource/README.md b/resource-manager/datadog/2022-06-01/monitorsresource/README.md index 58387f94436..f156017c9c1 100644 --- a/resource-manager/datadog/2022-06-01/monitorsresource/README.md +++ b/resource-manager/datadog/2022-06-01/monitorsresource/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2022-06-01/monitorsresource" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := monitorsresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.MonitorsList(ctx, id)` can be used to do batched pagination items, err := client.MonitorsListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitorsresource.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.MonitorsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.MonitorsListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/datadog/2023-01-01/agreements/README.md b/resource-manager/datadog/2023-01-01/agreements/README.md index 6a95bb7ec1b..eb94de927be 100644 --- a/resource-manager/datadog/2023-01-01/agreements/README.md +++ b/resource-manager/datadog/2023-01-01/agreements/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2023-01-01/agreements" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := agreements.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := agreements.DatadogAgreementResource{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agreements.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.MarketplaceAgreementsList(ctx, id)` can be used to do batched pagination items, err := client.MarketplaceAgreementsListComplete(ctx, id) diff --git a/resource-manager/datadog/2023-01-01/createresource/README.md b/resource-manager/datadog/2023-01-01/createresource/README.md index 0a850d4b466..3af65b13c29 100644 --- a/resource-manager/datadog/2023-01-01/createresource/README.md +++ b/resource-manager/datadog/2023-01-01/createresource/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2023-01-01/createresource" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := createresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.CreationSupportedGet(ctx, id, createresource.DefaultCreationSupportedGetOperationOptions()) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := createresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.CreationSupportedList(ctx, id, createresource.DefaultCreationSupportedListOperationOptions()) if err != nil { diff --git a/resource-manager/datadog/2023-01-01/monitorsresource/README.md b/resource-manager/datadog/2023-01-01/monitorsresource/README.md index 4b4c8ddc605..a1f4a8a0f79 100644 --- a/resource-manager/datadog/2023-01-01/monitorsresource/README.md +++ b/resource-manager/datadog/2023-01-01/monitorsresource/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2023-01-01/monitorsresource" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := monitorsresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.MonitorsList(ctx, id)` can be used to do batched pagination items, err := client.MonitorsListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitorsresource.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.MonitorsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.MonitorsListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/datafactory/2018-06-01/factories/README.md b/resource-manager/datafactory/2018-06-01/factories/README.md index 26e5eeaaa4d..a6dd1fc8bb3 100644 --- a/resource-manager/datafactory/2018-06-01/factories/README.md +++ b/resource-manager/datafactory/2018-06-01/factories/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories" ``` @@ -140,7 +141,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := factories.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -157,7 +158,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := factories.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/datalakeanalytics/2016-11-01/accounts/README.md b/resource-manager/datalakeanalytics/2016-11-01/accounts/README.md index a82e3ed879e..257acb11bae 100644 --- a/resource-manager/datalakeanalytics/2016-11-01/accounts/README.md +++ b/resource-manager/datalakeanalytics/2016-11-01/accounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datalakeanalytics/2016-11-01/accounts" ``` @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, accounts.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, accounts.DefaultListOperationOptions()) @@ -107,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := accounts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, accounts.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, accounts.DefaultListByResourceGroupOperationOptions()) diff --git a/resource-manager/datalakestore/2016-11-01/accounts/README.md b/resource-manager/datalakestore/2016-11-01/accounts/README.md index ea7e1540ef3..eb15f8c0de5 100644 --- a/resource-manager/datalakestore/2016-11-01/accounts/README.md +++ b/resource-manager/datalakestore/2016-11-01/accounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datalakestore/2016-11-01/accounts" ``` @@ -106,7 +107,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, accounts.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, accounts.DefaultListOperationOptions()) @@ -123,7 +124,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := accounts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, accounts.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, accounts.DefaultListByResourceGroupOperationOptions()) diff --git a/resource-manager/datamigration/2018-04-19/get/README.md b/resource-manager/datamigration/2018-04-19/get/README.md index 7271b7c873f..60793400f1d 100644 --- a/resource-manager/datamigration/2018-04-19/get/README.md +++ b/resource-manager/datamigration/2018-04-19/get/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/get" ``` @@ -57,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := get.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ResourceSkusListSkus(ctx, id)` can be used to do batched pagination items, err := client.ResourceSkusListSkusComplete(ctx, id) @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := get.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ServicesList(ctx, id)` can be used to do batched pagination items, err := client.ServicesListComplete(ctx, id) diff --git a/resource-manager/datamigration/2018-04-19/serviceresource/README.md b/resource-manager/datamigration/2018-04-19/serviceresource/README.md index 0e5888175f3..2c55a226711 100644 --- a/resource-manager/datamigration/2018-04-19/serviceresource/README.md +++ b/resource-manager/datamigration/2018-04-19/serviceresource/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource" ``` @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serviceresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ServicesList(ctx, id)` can be used to do batched pagination items, err := client.ServicesListComplete(ctx, id) diff --git a/resource-manager/datamigration/2018-04-19/standardoperation/README.md b/resource-manager/datamigration/2018-04-19/standardoperation/README.md index 6428c184bef..9c64f636ccc 100644 --- a/resource-manager/datamigration/2018-04-19/standardoperation/README.md +++ b/resource-manager/datamigration/2018-04-19/standardoperation/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/standardoperation" ``` @@ -115,7 +116,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := standardoperation.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ResourceSkusListSkus(ctx, id)` can be used to do batched pagination items, err := client.ResourceSkusListSkusComplete(ctx, id) @@ -198,7 +199,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := standardoperation.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ServicesList(ctx, id)` can be used to do batched pagination items, err := client.ServicesListComplete(ctx, id) diff --git a/resource-manager/datamigration/2021-06-30/get/README.md b/resource-manager/datamigration/2021-06-30/get/README.md index 5185976803c..882f2b7462a 100644 --- a/resource-manager/datamigration/2021-06-30/get/README.md +++ b/resource-manager/datamigration/2021-06-30/get/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/get" ``` @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := get.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ResourceSkusListSkus(ctx, id)` can be used to do batched pagination items, err := client.ResourceSkusListSkusComplete(ctx, id) @@ -156,7 +157,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := get.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ServicesList(ctx, id)` can be used to do batched pagination items, err := client.ServicesListComplete(ctx, id) diff --git a/resource-manager/datamigration/2021-06-30/serviceresource/README.md b/resource-manager/datamigration/2021-06-30/serviceresource/README.md index 0cc5feee7d2..6695ccca301 100644 --- a/resource-manager/datamigration/2021-06-30/serviceresource/README.md +++ b/resource-manager/datamigration/2021-06-30/serviceresource/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource" ``` @@ -102,7 +103,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serviceresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ServicesList(ctx, id)` can be used to do batched pagination items, err := client.ServicesListComplete(ctx, id) diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/README.md b/resource-manager/datamigration/2021-06-30/standardoperation/README.md index 606fb621fbd..c00ba68aa8e 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/README.md +++ b/resource-manager/datamigration/2021-06-30/standardoperation/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/standardoperation" ``` @@ -238,7 +239,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := standardoperation.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ResourceSkusListSkus(ctx, id)` can be used to do batched pagination items, err := client.ResourceSkusListSkusComplete(ctx, id) @@ -412,7 +413,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := standardoperation.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ServicesList(ctx, id)` can be used to do batched pagination items, err := client.ServicesListComplete(ctx, id) diff --git a/resource-manager/dataprotection/2023-05-01/backupvaults/README.md b/resource-manager/dataprotection/2023-05-01/backupvaults/README.md index 763999cdd81..a77289cd1ba 100644 --- a/resource-manager/dataprotection/2023-05-01/backupvaults/README.md +++ b/resource-manager/dataprotection/2023-05-01/backupvaults/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults" ``` @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backupvaults.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.GetInResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.GetInResourceGroupComplete(ctx, id) @@ -107,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := backupvaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.GetInSubscription(ctx, id)` can be used to do batched pagination items, err := client.GetInSubscriptionComplete(ctx, id) diff --git a/resource-manager/dataprotection/2023-05-01/resourceguards/README.md b/resource-manager/dataprotection/2023-05-01/resourceguards/README.md index 9e688bb79a4..f58c7ea4b0b 100644 --- a/resource-manager/dataprotection/2023-05-01/resourceguards/README.md +++ b/resource-manager/dataprotection/2023-05-01/resourceguards/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards" ``` @@ -220,7 +221,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceguards.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.GetResourcesInResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.GetResourcesInResourceGroupComplete(ctx, id) @@ -237,7 +238,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceguards.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.GetResourcesInSubscription(ctx, id)` can be used to do batched pagination items, err := client.GetResourcesInSubscriptionComplete(ctx, id) diff --git a/resource-manager/dataprotection/2023-11-01/backupvaults/README.md b/resource-manager/dataprotection/2023-11-01/backupvaults/README.md index 0c43353a2d9..6bc9d990764 100644 --- a/resource-manager/dataprotection/2023-11-01/backupvaults/README.md +++ b/resource-manager/dataprotection/2023-11-01/backupvaults/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-11-01/backupvaults" ``` @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backupvaults.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.GetInResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.GetInResourceGroupComplete(ctx, id) @@ -107,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := backupvaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.GetInSubscription(ctx, id)` can be used to do batched pagination items, err := client.GetInSubscriptionComplete(ctx, id) diff --git a/resource-manager/dataprotection/2023-11-01/resourceguards/README.md b/resource-manager/dataprotection/2023-11-01/resourceguards/README.md index d9c61ce355a..5f2d9014fef 100644 --- a/resource-manager/dataprotection/2023-11-01/resourceguards/README.md +++ b/resource-manager/dataprotection/2023-11-01/resourceguards/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-11-01/resourceguards" ``` @@ -220,7 +221,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceguards.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.GetResourcesInResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.GetResourcesInResourceGroupComplete(ctx, id) @@ -237,7 +238,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceguards.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.GetResourcesInSubscription(ctx, id)` can be used to do batched pagination items, err := client.GetResourcesInSubscriptionComplete(ctx, id) diff --git a/resource-manager/dataprotection/2023-12-01/backupvaults/README.md b/resource-manager/dataprotection/2023-12-01/backupvaults/README.md index 59193d73aca..94b82c8a9a1 100644 --- a/resource-manager/dataprotection/2023-12-01/backupvaults/README.md +++ b/resource-manager/dataprotection/2023-12-01/backupvaults/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-12-01/backupvaults" ``` @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backupvaults.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.GetInResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.GetInResourceGroupComplete(ctx, id) @@ -107,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := backupvaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.GetInSubscription(ctx, id)` can be used to do batched pagination items, err := client.GetInSubscriptionComplete(ctx, id) diff --git a/resource-manager/dataprotection/2023-12-01/resourceguards/README.md b/resource-manager/dataprotection/2023-12-01/resourceguards/README.md index c3339233434..a95d2188fb2 100644 --- a/resource-manager/dataprotection/2023-12-01/resourceguards/README.md +++ b/resource-manager/dataprotection/2023-12-01/resourceguards/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-12-01/resourceguards" ``` @@ -220,7 +221,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceguards.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.GetResourcesInResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.GetResourcesInResourceGroupComplete(ctx, id) @@ -237,7 +238,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceguards.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.GetResourcesInSubscription(ctx, id)` can be used to do batched pagination items, err := client.GetResourcesInSubscriptionComplete(ctx, id) diff --git a/resource-manager/datashare/2019-11-01/account/README.md b/resource-manager/datashare/2019-11-01/account/README.md index af96b76dd43..f7305bf9a87 100644 --- a/resource-manager/datashare/2019-11-01/account/README.md +++ b/resource-manager/datashare/2019-11-01/account/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := account.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := account.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/datashare/2021-08-01/account/README.md b/resource-manager/datashare/2021-08-01/account/README.md index a2f91359075..7e27e1b5e29 100644 --- a/resource-manager/datashare/2021-08-01/account/README.md +++ b/resource-manager/datashare/2021-08-01/account/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2021-08-01/account" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := account.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := account.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/README.md b/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/README.md index 8cb88062411..f5cc43fd110 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/README.md +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgroup.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, applicationgroup.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, applicationgroup.DefaultListByResourceGroupOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgroup.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, applicationgroup.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, applicationgroup.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/README.md b/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/README.md index 049d9235bec..ec377ab9872 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/README.md +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hostpool.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hostpool.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/README.md b/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/README.md index 28fcd8f81a5..4e69c8dde1c 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/README.md +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan" ``` @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scalingplan.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -111,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scalingplan.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/README.md b/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/README.md index 1429a7e0e98..e93513c3a8a 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/README.md +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspace.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspace.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/README.md b/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/README.md index c2c41514ebe..79cf91fe42b 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/README.md +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgroup.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, applicationgroup.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, applicationgroup.DefaultListByResourceGroupOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgroup.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, applicationgroup.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, applicationgroup.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/README.md b/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/README.md index 499df24552d..ce75dc46826 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/README.md +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hostpool.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hostpool.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/README.md b/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/README.md index c83f747782e..4ba4fa7fc12 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/README.md +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan" ``` @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scalingplan.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -111,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scalingplan.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/README.md b/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/README.md index 7a2f667f1a8..74b58235726 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/README.md +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspace.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspace.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/desktopvirtualization/2022-09-09/applicationgroup/README.md b/resource-manager/desktopvirtualization/2022-09-09/applicationgroup/README.md index 9021372a0bc..84101cdce6b 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/applicationgroup/README.md +++ b/resource-manager/desktopvirtualization/2022-09-09/applicationgroup/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-09-09/applicationgroup" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgroup.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, applicationgroup.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, applicationgroup.DefaultListByResourceGroupOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgroup.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, applicationgroup.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, applicationgroup.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/desktopvirtualization/2022-09-09/hostpool/README.md b/resource-manager/desktopvirtualization/2022-09-09/hostpool/README.md index d14edf1df9d..55534e7baf4 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/hostpool/README.md +++ b/resource-manager/desktopvirtualization/2022-09-09/hostpool/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-09-09/hostpool" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hostpool.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, hostpool.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, hostpool.DefaultListOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hostpool.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, hostpool.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, hostpool.DefaultListByResourceGroupOperationOptions()) diff --git a/resource-manager/desktopvirtualization/2022-09-09/scalingplan/README.md b/resource-manager/desktopvirtualization/2022-09-09/scalingplan/README.md index 280650d426b..5dc789d4fc5 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/scalingplan/README.md +++ b/resource-manager/desktopvirtualization/2022-09-09/scalingplan/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-09-09/scalingplan" ``` @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scalingplan.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, scalingplan.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, scalingplan.DefaultListByResourceGroupOperationOptions()) @@ -111,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scalingplan.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, scalingplan.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, scalingplan.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/desktopvirtualization/2022-09-09/workspace/README.md b/resource-manager/desktopvirtualization/2022-09-09/workspace/README.md index 9470627b4db..99031027dab 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/workspace/README.md +++ b/resource-manager/desktopvirtualization/2022-09-09/workspace/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-09-09/workspace" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspace.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, workspace.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, workspace.DefaultListByResourceGroupOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspace.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/devcenter/2023-04-01/checknameavailability/README.md b/resource-manager/devcenter/2023-04-01/checknameavailability/README.md index 77586a2e6a1..d0a1f775d41 100644 --- a/resource-manager/devcenter/2023-04-01/checknameavailability/README.md +++ b/resource-manager/devcenter/2023-04-01/checknameavailability/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checknameavailability.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checknameavailability.CheckNameAvailabilityRequest{ // ... diff --git a/resource-manager/devcenter/2023-04-01/devcenters/README.md b/resource-manager/devcenter/2023-04-01/devcenters/README.md index 9159a33391e..9474fc62090 100644 --- a/resource-manager/devcenter/2023-04-01/devcenters/README.md +++ b/resource-manager/devcenter/2023-04-01/devcenters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := devcenters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, devcenters.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, devcenters.DefaultListByResourceGroupOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := devcenters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, devcenters.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, devcenters.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/devcenter/2023-04-01/networkconnections/README.md b/resource-manager/devcenter/2023-04-01/networkconnections/README.md index 8e084196c53..2368936c6b1 100644 --- a/resource-manager/devcenter/2023-04-01/networkconnections/README.md +++ b/resource-manager/devcenter/2023-04-01/networkconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections" ``` @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkconnections.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -102,7 +103,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkconnections.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/devcenter/2023-04-01/projects/README.md b/resource-manager/devcenter/2023-04-01/projects/README.md index 71de9246cae..9bc17f99e29 100644 --- a/resource-manager/devcenter/2023-04-01/projects/README.md +++ b/resource-manager/devcenter/2023-04-01/projects/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := projects.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, projects.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, projects.DefaultListByResourceGroupOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := projects.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, projects.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, projects.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/devcenter/2023-04-01/skus/README.md b/resource-manager/devcenter/2023-04-01/skus/README.md index 330b3ef6220..d23503beb33 100644 --- a/resource-manager/devcenter/2023-04-01/skus/README.md +++ b/resource-manager/devcenter/2023-04-01/skus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/skus" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := skus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/README.md b/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/README.md index 68cbd1c0a04..a8e7fb57f0e 100644 --- a/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/README.md +++ b/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dpscertificate.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/README.md b/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/README.md index ea2e0335ca0..47bb02e22e9 100644 --- a/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/README.md +++ b/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := iotdpsresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := iotdpsresource.OperationInputs{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") payload := iotdpsresource.ProvisioningServiceDescription{ // ... @@ -79,7 +80,7 @@ if err := client.CreateOrUpdatePrivateEndpointConnectionThenPoll(ctx, id, payloa ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -103,7 +104,7 @@ if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") read, err := client.Get(ctx, id) if err != nil { @@ -151,7 +152,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -168,7 +169,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := iotdpsresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) @@ -185,7 +186,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") // alternatively `client.ListKeys(ctx, id)` can be used to do batched pagination items, err := client.ListKeysComplete(ctx, id) @@ -218,7 +219,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") read, err := client.ListPrivateEndpointConnections(ctx, id) if err != nil { @@ -234,7 +235,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") read, err := client.ListPrivateLinkResources(ctx, id) if err != nil { @@ -250,7 +251,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") // alternatively `client.ListValidSkus(ctx, id)` can be used to do batched pagination items, err := client.ListValidSkusComplete(ctx, id) @@ -267,7 +268,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") payload := iotdpsresource.TagsResource{ // ... diff --git a/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/README.md b/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/README.md index 0a4c02ab2b1..381ab2842f0 100644 --- a/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/README.md +++ b/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dpscertificate.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/README.md b/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/README.md index 023fc36173a..526dc92bc6d 100644 --- a/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/README.md +++ b/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := iotdpsresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := iotdpsresource.OperationInputs{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") payload := iotdpsresource.ProvisioningServiceDescription{ // ... @@ -79,7 +80,7 @@ if err := client.CreateOrUpdatePrivateEndpointConnectionThenPoll(ctx, id, payloa ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -103,7 +104,7 @@ if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") read, err := client.Get(ctx, id) if err != nil { @@ -151,7 +152,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -168,7 +169,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := iotdpsresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) @@ -185,7 +186,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") // alternatively `client.ListKeys(ctx, id)` can be used to do batched pagination items, err := client.ListKeysComplete(ctx, id) @@ -218,7 +219,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") read, err := client.ListPrivateEndpointConnections(ctx, id) if err != nil { @@ -234,7 +235,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") read, err := client.ListPrivateLinkResources(ctx, id) if err != nil { @@ -250,7 +251,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") // alternatively `client.ListValidSkus(ctx, id)` can be used to do batched pagination items, err := client.ListValidSkusComplete(ctx, id) @@ -267,7 +268,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := iotdpsresource.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") payload := iotdpsresource.TagsResource{ // ... diff --git a/resource-manager/deviceupdate/2022-10-01/deviceupdates/README.md b/resource-manager/deviceupdate/2022-10-01/deviceupdates/README.md index 811c412db55..7c7c995c2f3 100644 --- a/resource-manager/deviceupdate/2022-10-01/deviceupdates/README.md +++ b/resource-manager/deviceupdate/2022-10-01/deviceupdates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates" ``` @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deviceupdates.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.AccountsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.AccountsListByResourceGroupComplete(ctx, id) @@ -102,7 +103,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deviceupdates.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.AccountsListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.AccountsListBySubscriptionComplete(ctx, id) @@ -136,7 +137,7 @@ if err := client.AccountsUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := deviceupdates.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := deviceupdates.CheckNameAvailabilityRequest{ // ... diff --git a/resource-manager/deviceupdate/2023-07-01/deviceupdates/README.md b/resource-manager/deviceupdate/2023-07-01/deviceupdates/README.md index 54c8037f52c..8ae135dd90c 100644 --- a/resource-manager/deviceupdate/2023-07-01/deviceupdates/README.md +++ b/resource-manager/deviceupdate/2023-07-01/deviceupdates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2023-07-01/deviceupdates" ``` @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deviceupdates.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.AccountsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.AccountsListByResourceGroupComplete(ctx, id) @@ -102,7 +103,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deviceupdates.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.AccountsListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.AccountsListBySubscriptionComplete(ctx, id) @@ -136,7 +137,7 @@ if err := client.AccountsUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := deviceupdates.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := deviceupdates.CheckNameAvailabilityRequest{ // ... diff --git a/resource-manager/devtestlab/2018-09-15/globalschedules/README.md b/resource-manager/devtestlab/2018-09-15/globalschedules/README.md index 43a8d97c0e2..412a02f7d5b 100644 --- a/resource-manager/devtestlab/2018-09-15/globalschedules/README.md +++ b/resource-manager/devtestlab/2018-09-15/globalschedules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules" ``` @@ -89,7 +90,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := globalschedules.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, globalschedules.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, globalschedules.DefaultListByResourceGroupOperationOptions()) @@ -106,7 +107,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalschedules.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, globalschedules.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, globalschedules.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/devtestlab/2018-09-15/labs/README.md b/resource-manager/devtestlab/2018-09-15/labs/README.md index 6d6be165514..99c9de4594c 100644 --- a/resource-manager/devtestlab/2018-09-15/labs/README.md +++ b/resource-manager/devtestlab/2018-09-15/labs/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs" ``` @@ -153,7 +154,7 @@ if err := client.ImportVirtualMachineThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := labs.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, labs.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, labs.DefaultListByResourceGroupOperationOptions()) @@ -170,7 +171,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := labs.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, labs.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, labs.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/README.md b/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/README.md index c37255dc6f4..2bcd548bebb 100644 --- a/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/README.md +++ b/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := digitaltwinsinstance.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.DigitalTwinsList(ctx, id)` can be used to do batched pagination items, err := client.DigitalTwinsListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := digitaltwinsinstance.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.DigitalTwinsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.DigitalTwinsListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/dns/2018-05-01/dns/README.md b/resource-manager/dns/2018-05-01/dns/README.md index 637023a3c1c..99188677a47 100644 --- a/resource-manager/dns/2018-05-01/dns/README.md +++ b/resource-manager/dns/2018-05-01/dns/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dns.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := dns.DnsResourceReferenceRequest{ // ... diff --git a/resource-manager/dns/2018-05-01/zones/README.md b/resource-manager/dns/2018-05-01/zones/README.md index 29f757e9a0b..c64b5a68bf4 100644 --- a/resource-manager/dns/2018-05-01/zones/README.md +++ b/resource-manager/dns/2018-05-01/zones/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := zones.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, zones.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, zones.DefaultListOperationOptions()) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := zones.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, zones.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, zones.DefaultListByResourceGroupOperationOptions()) diff --git a/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/README.md b/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/README.md index cb28e0b6873..00ec99fe93e 100644 --- a/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/README.md +++ b/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dnsforwardingrulesets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, dnsforwardingrulesets.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, dnsforwardingrulesets.DefaultListOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dnsforwardingrulesets.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, dnsforwardingrulesets.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, dnsforwardingrulesets.DefaultListByResourceGroupOperationOptions()) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dnsforwardingrulesets.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.ListByVirtualNetwork(ctx, id, dnsforwardingrulesets.DefaultListByVirtualNetworkOperationOptions())` can be used to do batched pagination items, err := client.ListByVirtualNetworkComplete(ctx, id, dnsforwardingrulesets.DefaultListByVirtualNetworkOperationOptions()) diff --git a/resource-manager/dnsresolver/2022-07-01/dnsresolvers/README.md b/resource-manager/dnsresolver/2022-07-01/dnsresolvers/README.md index 8194605d078..9a5596cf10f 100644 --- a/resource-manager/dnsresolver/2022-07-01/dnsresolvers/README.md +++ b/resource-manager/dnsresolver/2022-07-01/dnsresolvers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dnsresolvers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, dnsresolvers.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, dnsresolvers.DefaultListOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dnsresolvers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, dnsresolvers.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, dnsresolvers.DefaultListByResourceGroupOperationOptions()) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dnsresolvers.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.ListByVirtualNetwork(ctx, id, dnsresolvers.DefaultListByVirtualNetworkOperationOptions())` can be used to do batched pagination items, err := client.ListByVirtualNetworkComplete(ctx, id, dnsresolvers.DefaultListByVirtualNetworkOperationOptions()) diff --git a/resource-manager/dynatrace/2021-09-01/monitors/README.md b/resource-manager/dynatrace/2021-09-01/monitors/README.md index ac309be59bd..ade6f7f7247 100644 --- a/resource-manager/dynatrace/2021-09-01/monitors/README.md +++ b/resource-manager/dynatrace/2021-09-01/monitors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2021-09-01/monitors" ``` @@ -139,7 +140,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitors.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -156,7 +157,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitors.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscriptionId(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionIdComplete(ctx, id) diff --git a/resource-manager/dynatrace/2023-04-27/monitors/README.md b/resource-manager/dynatrace/2023-04-27/monitors/README.md index e1b128aa9f5..87625dddaf5 100644 --- a/resource-manager/dynatrace/2023-04-27/monitors/README.md +++ b/resource-manager/dynatrace/2023-04-27/monitors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := monitors.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := monitors.MarketplaceSaaSResourceDetailsRequest{ // ... @@ -160,7 +161,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitors.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -177,7 +178,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitors.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscriptionId(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionIdComplete(ctx, id) diff --git a/resource-manager/elastic/2023-06-01/apikey/README.md b/resource-manager/elastic/2023-06-01/apikey/README.md index 9346d7d18b5..e0a55f798fe 100644 --- a/resource-manager/elastic/2023-06-01/apikey/README.md +++ b/resource-manager/elastic/2023-06-01/apikey/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/apikey" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apikey.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := apikey.UserEmailId{ // ... diff --git a/resource-manager/elastic/2023-06-01/elasticversions/README.md b/resource-manager/elastic/2023-06-01/elasticversions/README.md index b75a4ed6c37..46e5dbc0e01 100644 --- a/resource-manager/elastic/2023-06-01/elasticversions/README.md +++ b/resource-manager/elastic/2023-06-01/elasticversions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/elasticversions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := elasticversions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, elasticversions.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, elasticversions.DefaultListOperationOptions()) diff --git a/resource-manager/elastic/2023-06-01/monitorsresource/README.md b/resource-manager/elastic/2023-06-01/monitorsresource/README.md index ab19edb1d7a..6eea80a7ed0 100644 --- a/resource-manager/elastic/2023-06-01/monitorsresource/README.md +++ b/resource-manager/elastic/2023-06-01/monitorsresource/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := monitorsresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.MonitorsList(ctx, id)` can be used to do batched pagination items, err := client.MonitorsListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitorsresource.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.MonitorsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.MonitorsListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/elasticsan/2023-01-01/elasticsan/README.md b/resource-manager/elasticsan/2023-01-01/elasticsan/README.md index 348a28e4685..7d7db5eeb45 100644 --- a/resource-manager/elasticsan/2023-01-01/elasticsan/README.md +++ b/resource-manager/elasticsan/2023-01-01/elasticsan/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsan" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := elasticsan.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/elasticsan/2023-01-01/elasticsans/README.md b/resource-manager/elasticsan/2023-01-01/elasticsans/README.md index 6541927980d..ac2dcc31fab 100644 --- a/resource-manager/elasticsan/2023-01-01/elasticsans/README.md +++ b/resource-manager/elasticsan/2023-01-01/elasticsans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := elasticsans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/elasticsan/2023-01-01/elasticsanskus/README.md b/resource-manager/elasticsan/2023-01-01/elasticsanskus/README.md index 227419b6dea..571380678d2 100644 --- a/resource-manager/elasticsan/2023-01-01/elasticsanskus/README.md +++ b/resource-manager/elasticsan/2023-01-01/elasticsanskus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := elasticsanskus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.SkusList(ctx, id, elasticsanskus.DefaultSkusListOperationOptions()) if err != nil { diff --git a/resource-manager/eventgrid/2022-06-15/domains/README.md b/resource-manager/eventgrid/2022-06-15/domains/README.md index 28c702cffb7..420ca80bc18 100644 --- a/resource-manager/eventgrid/2022-06-15/domains/README.md +++ b/resource-manager/eventgrid/2022-06-15/domains/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := domains.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, domains.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, domains.DefaultListByResourceGroupOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := domains.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, domains.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, domains.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/README.md b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/README.md index 2f6a28cd674..1d5ac47e688 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/README.md +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions" ``` @@ -340,7 +341,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventsubscriptions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByResource(ctx, id, eventsubscriptions.DefaultListByResourceOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceComplete(ctx, id, eventsubscriptions.DefaultListByResourceOperationOptions()) @@ -357,7 +358,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventsubscriptions.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListGlobalByResourceGroup(ctx, id, eventsubscriptions.DefaultListGlobalByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListGlobalByResourceGroupComplete(ctx, id, eventsubscriptions.DefaultListGlobalByResourceGroupOperationOptions()) @@ -391,7 +392,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventsubscriptions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListGlobalBySubscription(ctx, id, eventsubscriptions.DefaultListGlobalBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListGlobalBySubscriptionComplete(ctx, id, eventsubscriptions.DefaultListGlobalBySubscriptionOperationOptions()) diff --git a/resource-manager/eventgrid/2022-06-15/partnerconfigurations/README.md b/resource-manager/eventgrid/2022-06-15/partnerconfigurations/README.md index 2cbdbeda9c2..d4872deb19a 100644 --- a/resource-manager/eventgrid/2022-06-15/partnerconfigurations/README.md +++ b/resource-manager/eventgrid/2022-06-15/partnerconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := partnerconfigurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := partnerconfigurations.Partner{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := partnerconfigurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := partnerconfigurations.PartnerConfiguration{ // ... @@ -62,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := partnerconfigurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -74,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := partnerconfigurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.Get(ctx, id) if err != nil { @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := partnerconfigurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -106,7 +107,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := partnerconfigurations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, partnerconfigurations.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, partnerconfigurations.DefaultListBySubscriptionOperationOptions()) @@ -123,7 +124,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := partnerconfigurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := partnerconfigurations.Partner{ // ... @@ -144,7 +145,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := partnerconfigurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := partnerconfigurations.PartnerConfigurationUpdateParameters{ // ... diff --git a/resource-manager/eventgrid/2022-06-15/partnernamespaces/README.md b/resource-manager/eventgrid/2022-06-15/partnernamespaces/README.md index d5f8190a064..0760b0da528 100644 --- a/resource-manager/eventgrid/2022-06-15/partnernamespaces/README.md +++ b/resource-manager/eventgrid/2022-06-15/partnernamespaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := partnernamespaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, partnernamespaces.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, partnernamespaces.DefaultListByResourceGroupOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := partnernamespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, partnernamespaces.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, partnernamespaces.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/eventgrid/2022-06-15/partnerregistrations/README.md b/resource-manager/eventgrid/2022-06-15/partnerregistrations/README.md index 100408b0d8c..af6860eca20 100644 --- a/resource-manager/eventgrid/2022-06-15/partnerregistrations/README.md +++ b/resource-manager/eventgrid/2022-06-15/partnerregistrations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := partnerregistrations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, partnerregistrations.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, partnerregistrations.DefaultListByResourceGroupOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := partnerregistrations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, partnerregistrations.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, partnerregistrations.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/eventgrid/2022-06-15/partnertopics/README.md b/resource-manager/eventgrid/2022-06-15/partnertopics/README.md index 8765e58907d..54cf99f36e9 100644 --- a/resource-manager/eventgrid/2022-06-15/partnertopics/README.md +++ b/resource-manager/eventgrid/2022-06-15/partnertopics/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics" ``` @@ -105,7 +106,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := partnertopics.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, partnertopics.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, partnertopics.DefaultListByResourceGroupOperationOptions()) @@ -122,7 +123,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := partnertopics.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, partnertopics.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, partnertopics.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/eventgrid/2022-06-15/privateendpointconnections/README.md b/resource-manager/eventgrid/2022-06-15/privateendpointconnections/README.md index 7c5ac2243dc..31757855bb6 100644 --- a/resource-manager/eventgrid/2022-06-15/privateendpointconnections/README.md +++ b/resource-manager/eventgrid/2022-06-15/privateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections" ``` @@ -52,7 +53,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByResource(ctx, id, privateendpointconnections.DefaultListByResourceOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceComplete(ctx, id, privateendpointconnections.DefaultListByResourceOperationOptions()) diff --git a/resource-manager/eventgrid/2022-06-15/privatelinkresources/README.md b/resource-manager/eventgrid/2022-06-15/privatelinkresources/README.md index e44178c7208..6d7df9ddf2a 100644 --- a/resource-manager/eventgrid/2022-06-15/privatelinkresources/README.md +++ b/resource-manager/eventgrid/2022-06-15/privatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkresources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByResource(ctx, id, privatelinkresources.DefaultListByResourceOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceComplete(ctx, id, privatelinkresources.DefaultListByResourceOperationOptions()) diff --git a/resource-manager/eventgrid/2022-06-15/systemtopics/README.md b/resource-manager/eventgrid/2022-06-15/systemtopics/README.md index 5cac00e1539..5f0f80ac7ff 100644 --- a/resource-manager/eventgrid/2022-06-15/systemtopics/README.md +++ b/resource-manager/eventgrid/2022-06-15/systemtopics/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := systemtopics.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, systemtopics.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, systemtopics.DefaultListByResourceGroupOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := systemtopics.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, systemtopics.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, systemtopics.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/eventgrid/2022-06-15/topics/README.md b/resource-manager/eventgrid/2022-06-15/topics/README.md index 452c877926d..72d13bb1f71 100644 --- a/resource-manager/eventgrid/2022-06-15/topics/README.md +++ b/resource-manager/eventgrid/2022-06-15/topics/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics" ``` @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := topics.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.ExtensionTopicsGet(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := topics.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, topics.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, topics.DefaultListByResourceGroupOperationOptions()) @@ -102,7 +103,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := topics.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, topics.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, topics.DefaultListBySubscriptionOperationOptions()) @@ -119,7 +120,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := topics.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.ListEventTypes(ctx, id) if err != nil { diff --git a/resource-manager/eventhub/2021-11-01/checknameavailabilitynamespaces/README.md b/resource-manager/eventhub/2021-11-01/checknameavailabilitynamespaces/README.md index 543002ebcc1..e497e50bdb3 100644 --- a/resource-manager/eventhub/2021-11-01/checknameavailabilitynamespaces/README.md +++ b/resource-manager/eventhub/2021-11-01/checknameavailabilitynamespaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitynamespaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checknameavailabilitynamespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checknameavailabilitynamespaces.CheckNameAvailabilityParameter{ // ... diff --git a/resource-manager/eventhub/2021-11-01/eventhubsclusters/README.md b/resource-manager/eventhub/2021-11-01/eventhubsclusters/README.md index 1dd2a22a0c5..10e7db23645 100644 --- a/resource-manager/eventhub/2021-11-01/eventhubsclusters/README.md +++ b/resource-manager/eventhub/2021-11-01/eventhubsclusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventhubsclusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ClustersListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ClustersListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventhubsclusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ClustersListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ClustersListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/eventhub/2021-11-01/eventhubsclustersavailableclusterregions/README.md b/resource-manager/eventhub/2021-11-01/eventhubsclustersavailableclusterregions/README.md index 8e26ce9f5e1..49b8e20d769 100644 --- a/resource-manager/eventhub/2021-11-01/eventhubsclustersavailableclusterregions/README.md +++ b/resource-manager/eventhub/2021-11-01/eventhubsclustersavailableclusterregions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclustersavailableclusterregions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := eventhubsclustersavailableclusterregions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ClustersListAvailableClusterRegion(ctx, id) if err != nil { diff --git a/resource-manager/eventhub/2021-11-01/namespaces/README.md b/resource-manager/eventhub/2021-11-01/namespaces/README.md index 7266d603fa8..a95334397d0 100644 --- a/resource-manager/eventhub/2021-11-01/namespaces/README.md +++ b/resource-manager/eventhub/2021-11-01/namespaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/eventhub/2022-01-01-preview/checknameavailabilitynamespaces/README.md b/resource-manager/eventhub/2022-01-01-preview/checknameavailabilitynamespaces/README.md index 98e21895b17..065db5ef116 100644 --- a/resource-manager/eventhub/2022-01-01-preview/checknameavailabilitynamespaces/README.md +++ b/resource-manager/eventhub/2022-01-01-preview/checknameavailabilitynamespaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/checknameavailabilitynamespaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checknameavailabilitynamespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checknameavailabilitynamespaces.CheckNameAvailabilityParameter{ // ... diff --git a/resource-manager/eventhub/2022-01-01-preview/eventhubsclusters/README.md b/resource-manager/eventhub/2022-01-01-preview/eventhubsclusters/README.md index 6dc2eb33b45..8a212cb8dc0 100644 --- a/resource-manager/eventhub/2022-01-01-preview/eventhubsclusters/README.md +++ b/resource-manager/eventhub/2022-01-01-preview/eventhubsclusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/eventhubsclusters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventhubsclusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ClustersListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ClustersListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventhubsclusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ClustersListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ClustersListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/eventhub/2022-01-01-preview/eventhubsclustersavailableclusterregions/README.md b/resource-manager/eventhub/2022-01-01-preview/eventhubsclustersavailableclusterregions/README.md index 08d2d8b39a1..56992bb1dff 100644 --- a/resource-manager/eventhub/2022-01-01-preview/eventhubsclustersavailableclusterregions/README.md +++ b/resource-manager/eventhub/2022-01-01-preview/eventhubsclustersavailableclusterregions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/eventhubsclustersavailableclusterregions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := eventhubsclustersavailableclusterregions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ClustersListAvailableClusterRegion(ctx, id) if err != nil { diff --git a/resource-manager/eventhub/2022-01-01-preview/namespaces/README.md b/resource-manager/eventhub/2022-01-01-preview/namespaces/README.md index 90bd26a208a..e1eaf558109 100644 --- a/resource-manager/eventhub/2022-01-01-preview/namespaces/README.md +++ b/resource-manager/eventhub/2022-01-01-preview/namespaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/eventhub/2024-01-01/checknameavailabilitynamespaces/README.md b/resource-manager/eventhub/2024-01-01/checknameavailabilitynamespaces/README.md index f736dd26688..8b50251aab4 100644 --- a/resource-manager/eventhub/2024-01-01/checknameavailabilitynamespaces/README.md +++ b/resource-manager/eventhub/2024-01-01/checknameavailabilitynamespaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2024-01-01/checknameavailabilitynamespaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checknameavailabilitynamespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checknameavailabilitynamespaces.CheckNameAvailabilityParameter{ // ... diff --git a/resource-manager/eventhub/2024-01-01/eventhubsclusters/README.md b/resource-manager/eventhub/2024-01-01/eventhubsclusters/README.md index 67c48741cbd..68e10e099eb 100644 --- a/resource-manager/eventhub/2024-01-01/eventhubsclusters/README.md +++ b/resource-manager/eventhub/2024-01-01/eventhubsclusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2024-01-01/eventhubsclusters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventhubsclusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ClustersListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ClustersListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventhubsclusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ClustersListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ClustersListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/eventhub/2024-01-01/eventhubsclustersavailableclusterregions/README.md b/resource-manager/eventhub/2024-01-01/eventhubsclustersavailableclusterregions/README.md index 33c2998265f..eae80c1c277 100644 --- a/resource-manager/eventhub/2024-01-01/eventhubsclustersavailableclusterregions/README.md +++ b/resource-manager/eventhub/2024-01-01/eventhubsclustersavailableclusterregions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2024-01-01/eventhubsclustersavailableclusterregions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := eventhubsclustersavailableclusterregions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ClustersListAvailableClusterRegion(ctx, id) if err != nil { diff --git a/resource-manager/eventhub/2024-01-01/namespaces/README.md b/resource-manager/eventhub/2024-01-01/namespaces/README.md index 59864b84365..f3e5f4ad563 100644 --- a/resource-manager/eventhub/2024-01-01/namespaces/README.md +++ b/resource-manager/eventhub/2024-01-01/namespaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2024-01-01/namespaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/extendedlocation/2021-08-15/customlocations/README.md b/resource-manager/extendedlocation/2021-08-15/customlocations/README.md index 3f56bf0f4e5..245f8d300e0 100644 --- a/resource-manager/extendedlocation/2021-08-15/customlocations/README.md +++ b/resource-manager/extendedlocation/2021-08-15/customlocations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := customlocations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := customlocations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/README.md b/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/README.md index 80e619aeaac..8a5e0a2e9ea 100644 --- a/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/README.md +++ b/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fluidrelayservers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -110,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := fluidrelayservers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/fluidrelay/2022-06-01/fluidrelayservers/README.md b/resource-manager/fluidrelay/2022-06-01/fluidrelayservers/README.md index 75dd48987bd..615412bcd99 100644 --- a/resource-manager/fluidrelay/2022-06-01/fluidrelayservers/README.md +++ b/resource-manager/fluidrelay/2022-06-01/fluidrelayservers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-06-01/fluidrelayservers" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fluidrelayservers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := fluidrelayservers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/frontdoor/2020-04-01/checkfrontdoornameavailabilitywithsubscription/README.md b/resource-manager/frontdoor/2020-04-01/checkfrontdoornameavailabilitywithsubscription/README.md index 795a98d082e..37005c449a8 100644 --- a/resource-manager/frontdoor/2020-04-01/checkfrontdoornameavailabilitywithsubscription/README.md +++ b/resource-manager/frontdoor/2020-04-01/checkfrontdoornameavailabilitywithsubscription/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/checkfrontdoornameavailabilitywithsubscription" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checkfrontdoornameavailabilitywithsubscription.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checkfrontdoornameavailabilitywithsubscription.CheckNameAvailabilityInput{ // ... diff --git a/resource-manager/frontdoor/2020-04-01/frontdoors/README.md b/resource-manager/frontdoor/2020-04-01/frontdoors/README.md index a67a8ab9638..855c580c1ec 100644 --- a/resource-manager/frontdoor/2020-04-01/frontdoors/README.md +++ b/resource-manager/frontdoor/2020-04-01/frontdoors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/frontdoors" ``` @@ -148,7 +149,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := frontdoors.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -165,7 +166,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := frontdoors.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/frontdoor/2020-04-01/webapplicationfirewallmanagedrulesets/README.md b/resource-manager/frontdoor/2020-04-01/webapplicationfirewallmanagedrulesets/README.md index d3245739baf..6074ee5690a 100644 --- a/resource-manager/frontdoor/2020-04-01/webapplicationfirewallmanagedrulesets/README.md +++ b/resource-manager/frontdoor/2020-04-01/webapplicationfirewallmanagedrulesets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallmanagedrulesets" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := webapplicationfirewallmanagedrulesets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ManagedRuleSetsList(ctx, id)` can be used to do batched pagination items, err := client.ManagedRuleSetsListComplete(ctx, id) diff --git a/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/README.md b/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/README.md index ffce3aee11b..f1417863430 100644 --- a/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/README.md +++ b/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.PoliciesList(ctx, id)` can be used to do batched pagination items, err := client.PoliciesListComplete(ctx, id) diff --git a/resource-manager/frontdoor/2020-05-01/checkfrontdoornameavailabilitywithsubscription/README.md b/resource-manager/frontdoor/2020-05-01/checkfrontdoornameavailabilitywithsubscription/README.md index e5e3b02c62c..0eeebd94388 100644 --- a/resource-manager/frontdoor/2020-05-01/checkfrontdoornameavailabilitywithsubscription/README.md +++ b/resource-manager/frontdoor/2020-05-01/checkfrontdoornameavailabilitywithsubscription/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/checkfrontdoornameavailabilitywithsubscription" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checkfrontdoornameavailabilitywithsubscription.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checkfrontdoornameavailabilitywithsubscription.CheckNameAvailabilityInput{ // ... diff --git a/resource-manager/frontdoor/2020-05-01/frontdoors/README.md b/resource-manager/frontdoor/2020-05-01/frontdoors/README.md index 0014949f149..0e3913668d6 100644 --- a/resource-manager/frontdoor/2020-05-01/frontdoors/README.md +++ b/resource-manager/frontdoor/2020-05-01/frontdoors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors" ``` @@ -148,7 +149,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := frontdoors.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -165,7 +166,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := frontdoors.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/frontdoor/2022-05-01/webapplicationfirewallmanagedrulesets/README.md b/resource-manager/frontdoor/2022-05-01/webapplicationfirewallmanagedrulesets/README.md index cf97a79d3a8..6fb66ed4ceb 100644 --- a/resource-manager/frontdoor/2022-05-01/webapplicationfirewallmanagedrulesets/README.md +++ b/resource-manager/frontdoor/2022-05-01/webapplicationfirewallmanagedrulesets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2022-05-01/webapplicationfirewallmanagedrulesets" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := webapplicationfirewallmanagedrulesets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ManagedRuleSetsList(ctx, id)` can be used to do batched pagination items, err := client.ManagedRuleSetsListComplete(ctx, id) diff --git a/resource-manager/frontdoor/2022-05-01/webapplicationfirewallpolicies/README.md b/resource-manager/frontdoor/2022-05-01/webapplicationfirewallpolicies/README.md index 7a4f406ff43..008b755bcd1 100644 --- a/resource-manager/frontdoor/2022-05-01/webapplicationfirewallpolicies/README.md +++ b/resource-manager/frontdoor/2022-05-01/webapplicationfirewallpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2022-05-01/webapplicationfirewallpolicies" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.PoliciesList(ctx, id)` can be used to do batched pagination items, err := client.PoliciesListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.PoliciesListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.PoliciesListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/graphservices/2023-04-13/graphservicesprods/README.md b/resource-manager/graphservices/2023-04-13/graphservicesprods/README.md index 81b1b5e7c57..d53385fa183 100644 --- a/resource-manager/graphservices/2023-04-13/graphservicesprods/README.md +++ b/resource-manager/graphservices/2023-04-13/graphservicesprods/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := graphservicesprods.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.AccountsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.AccountsListByResourceGroupComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := graphservicesprods.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.AccountsListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.AccountsListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/README.md b/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/README.md index fc92714bb1e..cedf7cd69d6 100644 --- a/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/README.md +++ b/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := guestconfigurationassignments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.RGList(ctx, id) if err != nil { @@ -109,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := guestconfigurationassignments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.SubscriptionList(ctx, id) if err != nil { diff --git a/resource-manager/guestconfiguration/2022-01-25/guestconfigurationassignments/README.md b/resource-manager/guestconfiguration/2022-01-25/guestconfigurationassignments/README.md index 019f76cbc8f..b0d32786c7f 100644 --- a/resource-manager/guestconfiguration/2022-01-25/guestconfigurationassignments/README.md +++ b/resource-manager/guestconfiguration/2022-01-25/guestconfigurationassignments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2022-01-25/guestconfigurationassignments" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := guestconfigurationassignments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.RGList(ctx, id) if err != nil { @@ -109,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := guestconfigurationassignments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.SubscriptionList(ctx, id) if err != nil { diff --git a/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/README.md b/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/README.md index b9e137ebf83..5c34de7260d 100644 --- a/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/README.md +++ b/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dedicatedhsms.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.DedicatedHsmListByResourceGroup(ctx, id, dedicatedhsms.DefaultDedicatedHsmListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.DedicatedHsmListByResourceGroupComplete(ctx, id, dedicatedhsms.DefaultDedicatedHsmListByResourceGroupOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dedicatedhsms.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.DedicatedHsmListBySubscription(ctx, id, dedicatedhsms.DefaultDedicatedHsmListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.DedicatedHsmListBySubscriptionComplete(ctx, id, dedicatedhsms.DefaultDedicatedHsmListBySubscriptionOperationOptions()) diff --git a/resource-manager/hdinsight/2018-06-01-preview/applications/README.md b/resource-manager/hdinsight/2018-06-01-preview/applications/README.md index 092f6a7a86f..aec2af7c9b6 100644 --- a/resource-manager/hdinsight/2018-06-01-preview/applications/README.md +++ b/resource-manager/hdinsight/2018-06-01-preview/applications/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2018-06-01-preview/applications" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applications.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") // alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id) diff --git a/resource-manager/hdinsight/2018-06-01-preview/clusters/README.md b/resource-manager/hdinsight/2018-06-01-preview/clusters/README.md index c8613a27e8f..08aa31fd498 100644 --- a/resource-manager/hdinsight/2018-06-01-preview/clusters/README.md +++ b/resource-manager/hdinsight/2018-06-01-preview/clusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2018-06-01-preview/clusters" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.ClusterCreateParametersExtended{ // ... @@ -41,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.ExecuteScriptActionParameters{ // ... @@ -70,7 +71,7 @@ if err := client.ExecuteScriptActionsThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.Get(ctx, id) if err != nil { @@ -86,7 +87,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.GetGatewaySettings(ctx, id) if err != nil { @@ -102,7 +103,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -119,7 +120,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -136,7 +137,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.ClusterResizeParameters{ // ... @@ -153,7 +154,7 @@ if err := client.ResizeThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.ClusterDiskEncryptionParameters{ // ... @@ -170,7 +171,7 @@ if err := client.RotateDiskEncryptionKeyThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.ClusterPatchParameters{ // ... @@ -191,7 +192,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.AutoscaleConfigurationUpdateParameter{ // ... @@ -208,7 +209,7 @@ if err := client.UpdateAutoScaleConfigurationThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.UpdateGatewaySettingsParameters{ // ... @@ -225,7 +226,7 @@ if err := client.UpdateGatewaySettingsThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.UpdateClusterIdentityCertificateParameters{ // ... diff --git a/resource-manager/hdinsight/2018-06-01-preview/configurations/README.md b/resource-manager/hdinsight/2018-06-01-preview/configurations/README.md index 00964d8995a..310a2f99b76 100644 --- a/resource-manager/hdinsight/2018-06-01-preview/configurations/README.md +++ b/resource-manager/hdinsight/2018-06-01-preview/configurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2018-06-01-preview/configurations" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/hdinsight/2018-06-01-preview/extensions/README.md b/resource-manager/hdinsight/2018-06-01-preview/extensions/README.md index 45c29501416..3cb2b2b72d4 100644 --- a/resource-manager/hdinsight/2018-06-01-preview/extensions/README.md +++ b/resource-manager/hdinsight/2018-06-01-preview/extensions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2018-06-01-preview/extensions" ``` @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := extensions.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") if err := client.DisableAzureMonitorThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +66,7 @@ if err := client.DisableAzureMonitorThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := extensions.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") if err := client.DisableMonitoringThenPoll(ctx, id); err != nil { // handle the error @@ -77,7 +78,7 @@ if err := client.DisableMonitoringThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := extensions.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := extensions.AzureMonitorRequest{ // ... @@ -94,7 +95,7 @@ if err := client.EnableAzureMonitorThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := extensions.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := extensions.ClusterMonitoringRequest{ // ... @@ -127,7 +128,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := extensions.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.GetAzureMonitorStatus(ctx, id) if err != nil { @@ -143,7 +144,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := extensions.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.GetMonitoringStatus(ctx, id) if err != nil { diff --git a/resource-manager/hdinsight/2018-06-01-preview/scriptactions/README.md b/resource-manager/hdinsight/2018-06-01-preview/scriptactions/README.md index 7d44a550323..1f7afb9e3aa 100644 --- a/resource-manager/hdinsight/2018-06-01-preview/scriptactions/README.md +++ b/resource-manager/hdinsight/2018-06-01-preview/scriptactions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2018-06-01-preview/scriptactions" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scriptactions.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") // alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id) diff --git a/resource-manager/hdinsight/2018-06-01-preview/scriptexecutionhistory/README.md b/resource-manager/hdinsight/2018-06-01-preview/scriptexecutionhistory/README.md index ccf503609b1..e6c09db4e0a 100644 --- a/resource-manager/hdinsight/2018-06-01-preview/scriptexecutionhistory/README.md +++ b/resource-manager/hdinsight/2018-06-01-preview/scriptexecutionhistory/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2018-06-01-preview/scriptexecutionhistory" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := scriptexecutionhistory.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") // alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id) diff --git a/resource-manager/hdinsight/2018-06-01-preview/virtualmachines/README.md b/resource-manager/hdinsight/2018-06-01-preview/virtualmachines/README.md index 20fc5da81a4..3d2d39b24d4 100644 --- a/resource-manager/hdinsight/2018-06-01-preview/virtualmachines/README.md +++ b/resource-manager/hdinsight/2018-06-01-preview/virtualmachines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2018-06-01-preview/virtualmachines" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualmachines.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.ListHosts(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachines.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") var payload []string if err := client.RestartHostsThenPoll(ctx, id, payload); err != nil { diff --git a/resource-manager/hdinsight/2021-06-01/applications/README.md b/resource-manager/hdinsight/2021-06-01/applications/README.md index 39240b1a8db..10c4e4fdbaf 100644 --- a/resource-manager/hdinsight/2021-06-01/applications/README.md +++ b/resource-manager/hdinsight/2021-06-01/applications/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applications.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") // alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id) diff --git a/resource-manager/hdinsight/2021-06-01/clusters/README.md b/resource-manager/hdinsight/2021-06-01/clusters/README.md index 688fc33a11e..d5121b45b78 100644 --- a/resource-manager/hdinsight/2021-06-01/clusters/README.md +++ b/resource-manager/hdinsight/2021-06-01/clusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.ClusterCreateParametersExtended{ // ... @@ -41,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.ExecuteScriptActionParameters{ // ... @@ -70,7 +71,7 @@ if err := client.ExecuteScriptActionsThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.Get(ctx, id) if err != nil { @@ -86,7 +87,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.GetGatewaySettings(ctx, id) if err != nil { @@ -102,7 +103,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -119,7 +120,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -136,7 +137,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.ClusterResizeParameters{ // ... @@ -153,7 +154,7 @@ if err := client.ResizeThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.ClusterDiskEncryptionParameters{ // ... @@ -170,7 +171,7 @@ if err := client.RotateDiskEncryptionKeyThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.ClusterPatchParameters{ // ... @@ -191,7 +192,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.AutoscaleConfigurationUpdateParameter{ // ... @@ -208,7 +209,7 @@ if err := client.UpdateAutoScaleConfigurationThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.UpdateGatewaySettingsParameters{ // ... @@ -225,7 +226,7 @@ if err := client.UpdateGatewaySettingsThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.UpdateClusterIdentityCertificateParameters{ // ... diff --git a/resource-manager/hdinsight/2021-06-01/configurations/README.md b/resource-manager/hdinsight/2021-06-01/configurations/README.md index 3dad01502e8..04c99200f8c 100644 --- a/resource-manager/hdinsight/2021-06-01/configurations/README.md +++ b/resource-manager/hdinsight/2021-06-01/configurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/hdinsight/2021-06-01/extensions/README.md b/resource-manager/hdinsight/2021-06-01/extensions/README.md index dd006064e33..cb87e80d23c 100644 --- a/resource-manager/hdinsight/2021-06-01/extensions/README.md +++ b/resource-manager/hdinsight/2021-06-01/extensions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions" ``` @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := extensions.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") if err := client.DisableAzureMonitorThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +66,7 @@ if err := client.DisableAzureMonitorThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := extensions.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") if err := client.DisableMonitoringThenPoll(ctx, id); err != nil { // handle the error @@ -77,7 +78,7 @@ if err := client.DisableMonitoringThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := extensions.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := extensions.AzureMonitorRequest{ // ... @@ -94,7 +95,7 @@ if err := client.EnableAzureMonitorThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := extensions.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := extensions.ClusterMonitoringRequest{ // ... @@ -127,7 +128,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := extensions.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.GetAzureMonitorStatus(ctx, id) if err != nil { @@ -143,7 +144,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := extensions.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.GetMonitoringStatus(ctx, id) if err != nil { diff --git a/resource-manager/hdinsight/2021-06-01/privateendpointconnections/README.md b/resource-manager/hdinsight/2021-06-01/privateendpointconnections/README.md index 743bc05c76a..ffedf57ea2d 100644 --- a/resource-manager/hdinsight/2021-06-01/privateendpointconnections/README.md +++ b/resource-manager/hdinsight/2021-06-01/privateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") // alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id) diff --git a/resource-manager/hdinsight/2021-06-01/privatelinkresources/README.md b/resource-manager/hdinsight/2021-06-01/privatelinkresources/README.md index b189e6eee0f..15fba1f58b3 100644 --- a/resource-manager/hdinsight/2021-06-01/privatelinkresources/README.md +++ b/resource-manager/hdinsight/2021-06-01/privatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkresources.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.ListByCluster(ctx, id) if err != nil { diff --git a/resource-manager/hdinsight/2021-06-01/scriptactions/README.md b/resource-manager/hdinsight/2021-06-01/scriptactions/README.md index 85ab4b24a83..fb519a1bccf 100644 --- a/resource-manager/hdinsight/2021-06-01/scriptactions/README.md +++ b/resource-manager/hdinsight/2021-06-01/scriptactions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scriptactions.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") // alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id) diff --git a/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/README.md b/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/README.md index d066625fbd9..e7d6aa1ff46 100644 --- a/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/README.md +++ b/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := scriptexecutionhistory.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") // alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id) diff --git a/resource-manager/hdinsight/2021-06-01/virtualmachines/README.md b/resource-manager/hdinsight/2021-06-01/virtualmachines/README.md index 93cc1694221..6c89fe05f2d 100644 --- a/resource-manager/hdinsight/2021-06-01/virtualmachines/README.md +++ b/resource-manager/hdinsight/2021-06-01/virtualmachines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualmachines.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.ListHosts(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachines.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") var payload []string if err := client.RestartHostsThenPoll(ctx, id, payload); err != nil { diff --git a/resource-manager/healthbot/2022-08-08/healthbots/README.md b/resource-manager/healthbot/2022-08-08/healthbots/README.md index bce0e10867c..b34448c38ad 100644 --- a/resource-manager/healthbot/2022-08-08/healthbots/README.md +++ b/resource-manager/healthbot/2022-08-08/healthbots/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := healthbots.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.BotsList(ctx, id)` can be used to do batched pagination items, err := client.BotsListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := healthbots.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.BotsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.BotsListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/healthbot/2023-05-01/healthbots/README.md b/resource-manager/healthbot/2023-05-01/healthbots/README.md index 3e25834193b..97a5aeb9799 100644 --- a/resource-manager/healthbot/2023-05-01/healthbots/README.md +++ b/resource-manager/healthbot/2023-05-01/healthbots/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2023-05-01/healthbots" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := healthbots.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.BotsList(ctx, id)` can be used to do batched pagination items, err := client.BotsListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := healthbots.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.BotsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.BotsListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/healthcareapis/2022-12-01/collection/README.md b/resource-manager/healthcareapis/2022-12-01/collection/README.md index 86f98b85011..117aebb8fd8 100644 --- a/resource-manager/healthcareapis/2022-12-01/collection/README.md +++ b/resource-manager/healthcareapis/2022-12-01/collection/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/collection" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := collection.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ServicesList(ctx, id)` can be used to do batched pagination items, err := client.ServicesListComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := collection.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ServicesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ServicesListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/healthcareapis/2022-12-01/proxy/README.md b/resource-manager/healthcareapis/2022-12-01/proxy/README.md index 508999581b9..d901850ff5e 100644 --- a/resource-manager/healthcareapis/2022-12-01/proxy/README.md +++ b/resource-manager/healthcareapis/2022-12-01/proxy/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/proxy" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := proxy.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := proxy.CheckNameAvailabilityParameters{ // ... diff --git a/resource-manager/healthcareapis/2022-12-01/workspaces/README.md b/resource-manager/healthcareapis/2022-12-01/workspaces/README.md index 961bac907ff..c039b6bc14f 100644 --- a/resource-manager/healthcareapis/2022-12-01/workspaces/README.md +++ b/resource-manager/healthcareapis/2022-12-01/workspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/workspaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/healthcareapis/2023-02-28/collection/README.md b/resource-manager/healthcareapis/2023-02-28/collection/README.md index 899c5d70c27..c8321b48137 100644 --- a/resource-manager/healthcareapis/2023-02-28/collection/README.md +++ b/resource-manager/healthcareapis/2023-02-28/collection/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2023-02-28/collection" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := collection.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ServicesList(ctx, id)` can be used to do batched pagination items, err := client.ServicesListComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := collection.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ServicesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ServicesListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/healthcareapis/2023-02-28/proxy/README.md b/resource-manager/healthcareapis/2023-02-28/proxy/README.md index da4afd432c1..eddda2b94ea 100644 --- a/resource-manager/healthcareapis/2023-02-28/proxy/README.md +++ b/resource-manager/healthcareapis/2023-02-28/proxy/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2023-02-28/proxy" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := proxy.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := proxy.CheckNameAvailabilityParameters{ // ... diff --git a/resource-manager/healthcareapis/2023-02-28/workspaces/README.md b/resource-manager/healthcareapis/2023-02-28/workspaces/README.md index df75c2eba1f..f98f4fb5656 100644 --- a/resource-manager/healthcareapis/2023-02-28/workspaces/README.md +++ b/resource-manager/healthcareapis/2023-02-28/workspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2023-02-28/workspaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/healthcareapis/2023-09-06/collection/README.md b/resource-manager/healthcareapis/2023-09-06/collection/README.md index 9c201786cae..ffc9c7078cf 100644 --- a/resource-manager/healthcareapis/2023-09-06/collection/README.md +++ b/resource-manager/healthcareapis/2023-09-06/collection/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2023-09-06/collection" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := collection.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ServicesList(ctx, id)` can be used to do batched pagination items, err := client.ServicesListComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := collection.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ServicesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ServicesListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/healthcareapis/2023-09-06/proxy/README.md b/resource-manager/healthcareapis/2023-09-06/proxy/README.md index 816683441ff..b883afbd72a 100644 --- a/resource-manager/healthcareapis/2023-09-06/proxy/README.md +++ b/resource-manager/healthcareapis/2023-09-06/proxy/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2023-09-06/proxy" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := proxy.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := proxy.CheckNameAvailabilityParameters{ // ... diff --git a/resource-manager/healthcareapis/2023-09-06/workspaces/README.md b/resource-manager/healthcareapis/2023-09-06/workspaces/README.md index 0acdd725193..a940f9646d2 100644 --- a/resource-manager/healthcareapis/2023-09-06/workspaces/README.md +++ b/resource-manager/healthcareapis/2023-09-06/workspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2023-09-06/workspaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/healthcareapis/2023-11-01/collection/README.md b/resource-manager/healthcareapis/2023-11-01/collection/README.md index 413ea9eba37..b1e03105cc3 100644 --- a/resource-manager/healthcareapis/2023-11-01/collection/README.md +++ b/resource-manager/healthcareapis/2023-11-01/collection/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2023-11-01/collection" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := collection.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ServicesList(ctx, id)` can be used to do batched pagination items, err := client.ServicesListComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := collection.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ServicesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ServicesListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/healthcareapis/2023-11-01/proxy/README.md b/resource-manager/healthcareapis/2023-11-01/proxy/README.md index deabdfc0dc7..446e86ed14b 100644 --- a/resource-manager/healthcareapis/2023-11-01/proxy/README.md +++ b/resource-manager/healthcareapis/2023-11-01/proxy/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2023-11-01/proxy" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := proxy.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := proxy.CheckNameAvailabilityParameters{ // ... diff --git a/resource-manager/healthcareapis/2023-11-01/workspaces/README.md b/resource-manager/healthcareapis/2023-11-01/workspaces/README.md index 6a1133fdfff..e8a84cf71fe 100644 --- a/resource-manager/healthcareapis/2023-11-01/workspaces/README.md +++ b/resource-manager/healthcareapis/2023-11-01/workspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2023-11-01/workspaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/healthcareapis/2023-12-01/collection/README.md b/resource-manager/healthcareapis/2023-12-01/collection/README.md index 9b162e42f05..ecd69cc334b 100644 --- a/resource-manager/healthcareapis/2023-12-01/collection/README.md +++ b/resource-manager/healthcareapis/2023-12-01/collection/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2023-12-01/collection" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := collection.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ServicesList(ctx, id)` can be used to do batched pagination items, err := client.ServicesListComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := collection.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ServicesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ServicesListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/healthcareapis/2023-12-01/proxy/README.md b/resource-manager/healthcareapis/2023-12-01/proxy/README.md index b3df5a0bb60..e1a751526a5 100644 --- a/resource-manager/healthcareapis/2023-12-01/proxy/README.md +++ b/resource-manager/healthcareapis/2023-12-01/proxy/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2023-12-01/proxy" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := proxy.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := proxy.CheckNameAvailabilityParameters{ // ... diff --git a/resource-manager/healthcareapis/2023-12-01/workspaces/README.md b/resource-manager/healthcareapis/2023-12-01/workspaces/README.md index 127c899eda3..e99f00cb274 100644 --- a/resource-manager/healthcareapis/2023-12-01/workspaces/README.md +++ b/resource-manager/healthcareapis/2023-12-01/workspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2023-12-01/workspaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/README.md b/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/README.md index 00e8690996e..3d96beb4fe0 100644 --- a/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/README.md +++ b/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.AgentPoolListByProvisionedCluster(ctx, id)` can be used to do batched pagination items, err := client.AgentPoolListByProvisionedClusterComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.DeleteKubernetesVersionsThenPoll(ctx, id); err != nil { // handle the error @@ -98,7 +99,7 @@ if err := client.DeleteKubernetesVersionsThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.DeleteVMSkusThenPoll(ctx, id); err != nil { // handle the error @@ -110,7 +111,7 @@ if err := client.DeleteVMSkusThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.GetKubernetesVersions(ctx, id) if err != nil { @@ -126,7 +127,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.GetUpgradeProfile(ctx, id) if err != nil { @@ -142,7 +143,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.GetVMSkus(ctx, id) if err != nil { @@ -158,7 +159,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.HybridIdentityMetadataDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -170,7 +171,7 @@ if err := client.HybridIdentityMetadataDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.HybridIdentityMetadataGet(ctx, id) if err != nil { @@ -186,7 +187,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.HybridIdentityMetadataListByCluster(ctx, id)` can be used to do batched pagination items, err := client.HybridIdentityMetadataListByClusterComplete(ctx, id) @@ -203,7 +204,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := provisionedclusterinstances.HybridIdentityMetadata{ // ... @@ -224,7 +225,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.KubernetesVersionsList(ctx, id)` can be used to do batched pagination items, err := client.KubernetesVersionsListComplete(ctx, id) @@ -241,7 +242,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.ListAdminKubeconfigThenPoll(ctx, id); err != nil { // handle the error @@ -253,7 +254,7 @@ if err := client.ListAdminKubeconfigThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.ListUserKubeconfigThenPoll(ctx, id); err != nil { // handle the error @@ -265,7 +266,7 @@ if err := client.ListUserKubeconfigThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := provisionedclusterinstances.ProvisionedCluster{ // ... @@ -282,7 +283,7 @@ if err := client.ProvisionedClusterInstancesCreateOrUpdateThenPoll(ctx, id, payl ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.ProvisionedClusterInstancesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -294,7 +295,7 @@ if err := client.ProvisionedClusterInstancesDeleteThenPoll(ctx, id); err != nil ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.ProvisionedClusterInstancesGet(ctx, id) if err != nil { @@ -310,7 +311,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ProvisionedClusterInstancesList(ctx, id)` can be used to do batched pagination items, err := client.ProvisionedClusterInstancesListComplete(ctx, id) @@ -327,7 +328,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := provisionedclusterinstances.KubernetesVersionProfile{ // ... @@ -344,7 +345,7 @@ if err := client.PutKubernetesVersionsThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := provisionedclusterinstances.VMSkuProfile{ // ... @@ -361,7 +362,7 @@ if err := client.PutVMSkusThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := provisionedclusterinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.VMSkusList(ctx, id)` can be used to do batched pagination items, err := client.VMSkusListComplete(ctx, id) diff --git a/resource-manager/hybridazurekubernetesservice/2024-01-01/virtualnetworks/README.md b/resource-manager/hybridazurekubernetesservice/2024-01-01/virtualnetworks/README.md index 9b6c0804314..c84552405ff 100644 --- a/resource-manager/hybridazurekubernetesservice/2024-01-01/virtualnetworks/README.md +++ b/resource-manager/hybridazurekubernetesservice/2024-01-01/virtualnetworks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/virtualnetworks" ``` @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -70,7 +71,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/hybridcompute/2022-11-10/machines/README.md b/resource-manager/hybridcompute/2022-11-10/machines/README.md index 5e3279b2fda..b5820aff2dc 100644 --- a/resource-manager/hybridcompute/2022-11-10/machines/README.md +++ b/resource-manager/hybridcompute/2022-11-10/machines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := machines.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := machines.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/README.md b/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/README.md index 87710cf5f4d..761549bc81d 100644 --- a/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/README.md +++ b/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes" ``` @@ -105,7 +106,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkscopes.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -122,7 +123,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkscopes.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/hybridcompute/2022-12-27/machines/README.md b/resource-manager/hybridcompute/2022-12-27/machines/README.md index b24cbcdc1c5..9f53eef8b60 100644 --- a/resource-manager/hybridcompute/2022-12-27/machines/README.md +++ b/resource-manager/hybridcompute/2022-12-27/machines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-12-27/machines" ``` @@ -106,7 +107,7 @@ if err := client.InstallPatchesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := machines.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -123,7 +124,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := machines.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/hybridcompute/2022-12-27/privatelinkscopes/README.md b/resource-manager/hybridcompute/2022-12-27/privatelinkscopes/README.md index 80af5f6cbb9..d5be3bd169a 100644 --- a/resource-manager/hybridcompute/2022-12-27/privatelinkscopes/README.md +++ b/resource-manager/hybridcompute/2022-12-27/privatelinkscopes/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-12-27/privatelinkscopes" ``` @@ -105,7 +106,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkscopes.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -122,7 +123,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkscopes.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/README.md b/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/README.md index 6b58fde3c10..29736a828c9 100644 --- a/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/README.md +++ b/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connectedclusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ConnectedClusterListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ConnectedClusterListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := connectedclusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ConnectedClusterListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ConnectedClusterListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/README.md b/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/README.md index 03f38f8d58a..49a0f1ef886 100644 --- a/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/README.md +++ b/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connectedclusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ConnectedClusterListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ConnectedClusterListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := connectedclusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ConnectedClusterListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ConnectedClusterListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/insights/2015-04-01/activitylogs/README.md b/resource-manager/insights/2015-04-01/activitylogs/README.md index 60627c282e3..1d1f3a99a4d 100644 --- a/resource-manager/insights/2015-04-01/activitylogs/README.md +++ b/resource-manager/insights/2015-04-01/activitylogs/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := activitylogs.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, activitylogs.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, activitylogs.DefaultListOperationOptions()) diff --git a/resource-manager/insights/2015-04-01/autoscalesettings/README.md b/resource-manager/insights/2015-04-01/autoscalesettings/README.md index 88f93267802..2ef5e393230 100644 --- a/resource-manager/insights/2015-04-01/autoscalesettings/README.md +++ b/resource-manager/insights/2015-04-01/autoscalesettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/autoscalesettings" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := autoscalesettings.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := autoscalesettings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/insights/2016-03-01/alertrules/README.md b/resource-manager/insights/2016-03-01/alertrules/README.md index 9af2a626325..e226b10cf2b 100644 --- a/resource-manager/insights/2016-03-01/alertrules/README.md +++ b/resource-manager/insights/2016-03-01/alertrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2016-03-01/alertrules" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alertrules.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alertrules.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/insights/2016-03-01/logprofiles/README.md b/resource-manager/insights/2016-03-01/logprofiles/README.md index ab0f292de3d..fd6548a936e 100644 --- a/resource-manager/insights/2016-03-01/logprofiles/README.md +++ b/resource-manager/insights/2016-03-01/logprofiles/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2016-03-01/logprofiles" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := logprofiles.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/insights/2016-03-01/metricdefinitions/README.md b/resource-manager/insights/2016-03-01/metricdefinitions/README.md index cd099d5c1a0..aafb49984f5 100644 --- a/resource-manager/insights/2016-03-01/metricdefinitions/README.md +++ b/resource-manager/insights/2016-03-01/metricdefinitions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2016-03-01/metricdefinitions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := metricdefinitions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, metricdefinitions.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/insights/2018-03-01/actiongroupsapis/README.md b/resource-manager/insights/2018-03-01/actiongroupsapis/README.md index d8036268460..7bdb0a33e30 100644 --- a/resource-manager/insights/2018-03-01/actiongroupsapis/README.md +++ b/resource-manager/insights/2018-03-01/actiongroupsapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/actiongroupsapis" ``` @@ -98,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := actiongroupsapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ActionGroupsListByResourceGroup(ctx, id) if err != nil { @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := actiongroupsapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ActionGroupsListBySubscriptionId(ctx, id) if err != nil { diff --git a/resource-manager/insights/2018-03-01/metricalerts/README.md b/resource-manager/insights/2018-03-01/metricalerts/README.md index f3766ad367f..a174a5afbb8 100644 --- a/resource-manager/insights/2018-03-01/metricalerts/README.md +++ b/resource-manager/insights/2018-03-01/metricalerts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := metricalerts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := metricalerts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/insights/2018-04-16/scheduledqueryrules/README.md b/resource-manager/insights/2018-04-16/scheduledqueryrules/README.md index d74a3dabcd4..36ba5d293c1 100644 --- a/resource-manager/insights/2018-04-16/scheduledqueryrules/README.md +++ b/resource-manager/insights/2018-04-16/scheduledqueryrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledqueryrules.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id, scheduledqueryrules.DefaultListByResourceGroupOperationOptions()) if err != nil { @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledqueryrules.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id, scheduledqueryrules.DefaultListBySubscriptionOperationOptions()) if err != nil { diff --git a/resource-manager/insights/2019-10-17-preview/privatelinkscopesapis/README.md b/resource-manager/insights/2019-10-17-preview/privatelinkscopesapis/README.md index ca359456156..de817a13192 100644 --- a/resource-manager/insights/2019-10-17-preview/privatelinkscopesapis/README.md +++ b/resource-manager/insights/2019-10-17-preview/privatelinkscopesapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopesapis" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkscopesapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.PrivateLinkScopesList(ctx, id)` can be used to do batched pagination items, err := client.PrivateLinkScopesListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkscopesapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.PrivateLinkScopesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.PrivateLinkScopesListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/insights/2020-10-01/activitylogalertsapis/README.md b/resource-manager/insights/2020-10-01/activitylogalertsapis/README.md index c4ea0d387e7..432741dd1f7 100644 --- a/resource-manager/insights/2020-10-01/activitylogalertsapis/README.md +++ b/resource-manager/insights/2020-10-01/activitylogalertsapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := activitylogalertsapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ActivityLogAlertsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ActivityLogAlertsListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := activitylogalertsapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ActivityLogAlertsListBySubscriptionId(ctx, id)` can be used to do batched pagination items, err := client.ActivityLogAlertsListBySubscriptionIdComplete(ctx, id) diff --git a/resource-manager/insights/2021-04-01/datacollectionendpoints/README.md b/resource-manager/insights/2021-04-01/datacollectionendpoints/README.md index 09a277cf858..099e735ae95 100644 --- a/resource-manager/insights/2021-04-01/datacollectionendpoints/README.md +++ b/resource-manager/insights/2021-04-01/datacollectionendpoints/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-04-01/datacollectionendpoints" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datacollectionendpoints.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := datacollectionendpoints.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/insights/2021-04-01/datacollectionruleassociations/README.md b/resource-manager/insights/2021-04-01/datacollectionruleassociations/README.md index 9b33bfd9adc..6e3e725360f 100644 --- a/resource-manager/insights/2021-04-01/datacollectionruleassociations/README.md +++ b/resource-manager/insights/2021-04-01/datacollectionruleassociations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-04-01/datacollectionruleassociations" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datacollectionruleassociations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByResource(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceComplete(ctx, id) diff --git a/resource-manager/insights/2021-04-01/datacollectionrules/README.md b/resource-manager/insights/2021-04-01/datacollectionrules/README.md index d96e1bd4ef5..f4335ff8201 100644 --- a/resource-manager/insights/2021-04-01/datacollectionrules/README.md +++ b/resource-manager/insights/2021-04-01/datacollectionrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-04-01/datacollectionrules" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datacollectionrules.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := datacollectionrules.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/insights/2021-05-01-preview/autoscalesettings/README.md b/resource-manager/insights/2021-05-01-preview/autoscalesettings/README.md index 642753f710e..676e91ebebc 100644 --- a/resource-manager/insights/2021-05-01-preview/autoscalesettings/README.md +++ b/resource-manager/insights/2021-05-01-preview/autoscalesettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/autoscalesettings" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := autoscalesettings.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := autoscalesettings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/insights/2021-05-01-preview/diagnosticsettings/README.md b/resource-manager/insights/2021-05-01-preview/diagnosticsettings/README.md index 748fa343e86..9f0038989ef 100644 --- a/resource-manager/insights/2021-05-01-preview/diagnosticsettings/README.md +++ b/resource-manager/insights/2021-05-01-preview/diagnosticsettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diagnosticsettings.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/README.md b/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/README.md index ef63d9833a6..838131be8a8 100644 --- a/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/README.md +++ b/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diagnosticsettingscategories.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.DiagnosticSettingsCategoryList(ctx, id) if err != nil { diff --git a/resource-manager/insights/2021-05-01-preview/managementgroupdiagnosticsettings/README.md b/resource-manager/insights/2021-05-01-preview/managementgroupdiagnosticsettings/README.md index acae8c09752..e43a7449d88 100644 --- a/resource-manager/insights/2021-05-01-preview/managementgroupdiagnosticsettings/README.md +++ b/resource-manager/insights/2021-05-01-preview/managementgroupdiagnosticsettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/managementgroupdiagnosticsettings" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroupdiagnosticsettings.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/insights/2021-05-01-preview/subscriptiondiagnosticsettings/README.md b/resource-manager/insights/2021-05-01-preview/subscriptiondiagnosticsettings/README.md index dc119097038..54ed853e57a 100644 --- a/resource-manager/insights/2021-05-01-preview/subscriptiondiagnosticsettings/README.md +++ b/resource-manager/insights/2021-05-01-preview/subscriptiondiagnosticsettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/subscriptiondiagnosticsettings" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscriptiondiagnosticsettings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/README.md b/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/README.md index dfe03f91d89..f6e04d93b74 100644 --- a/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/README.md +++ b/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkscopesapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.PrivateLinkScopesList(ctx, id)` can be used to do batched pagination items, err := client.PrivateLinkScopesListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkscopesapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.PrivateLinkScopesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.PrivateLinkScopesListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/insights/2021-08-01/scheduledqueryrules/README.md b/resource-manager/insights/2021-08-01/scheduledqueryrules/README.md index bf96e4ecd4e..b1d8219d2cc 100644 --- a/resource-manager/insights/2021-08-01/scheduledqueryrules/README.md +++ b/resource-manager/insights/2021-08-01/scheduledqueryrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-08-01/scheduledqueryrules" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledqueryrules.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scheduledqueryrules.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/insights/2021-09-01/actiongroupsapis/README.md b/resource-manager/insights/2021-09-01/actiongroupsapis/README.md index fadf401663a..a73faa0aa90 100644 --- a/resource-manager/insights/2021-09-01/actiongroupsapis/README.md +++ b/resource-manager/insights/2021-09-01/actiongroupsapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-09-01/actiongroupsapis" ``` @@ -41,7 +42,7 @@ if err := client.ActionGroupsCreateNotificationsAtActionGroupResourceLevelThenPo ```go ctx := context.TODO() -id := actiongroupsapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := actiongroupsapis.NotificationRequestBody{ // ... @@ -180,7 +181,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := actiongroupsapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ActionGroupsListByResourceGroup(ctx, id) if err != nil { @@ -196,7 +197,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := actiongroupsapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ActionGroupsListBySubscriptionId(ctx, id) if err != nil { @@ -212,7 +213,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := actiongroupsapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := actiongroupsapis.NotificationRequestBody{ // ... diff --git a/resource-manager/insights/2022-06-01/actiongroupsapis/README.md b/resource-manager/insights/2022-06-01/actiongroupsapis/README.md index 439536027d3..da331877165 100644 --- a/resource-manager/insights/2022-06-01/actiongroupsapis/README.md +++ b/resource-manager/insights/2022-06-01/actiongroupsapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/actiongroupsapis" ``` @@ -41,7 +42,7 @@ if err := client.ActionGroupsCreateNotificationsAtActionGroupResourceLevelThenPo ```go ctx := context.TODO() -id := actiongroupsapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := actiongroupsapis.NotificationRequestBody{ // ... @@ -180,7 +181,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := actiongroupsapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ActionGroupsListByResourceGroup(ctx, id) if err != nil { @@ -196,7 +197,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := actiongroupsapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ActionGroupsListBySubscriptionId(ctx, id) if err != nil { @@ -212,7 +213,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := actiongroupsapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := actiongroupsapis.NotificationRequestBody{ // ... diff --git a/resource-manager/insights/2022-06-01/datacollectionendpoints/README.md b/resource-manager/insights/2022-06-01/datacollectionendpoints/README.md index f5bfd84cc21..3506ced3738 100644 --- a/resource-manager/insights/2022-06-01/datacollectionendpoints/README.md +++ b/resource-manager/insights/2022-06-01/datacollectionendpoints/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datacollectionendpoints.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := datacollectionendpoints.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/insights/2022-06-01/datacollectionruleassociations/README.md b/resource-manager/insights/2022-06-01/datacollectionruleassociations/README.md index 030822dfe46..6547406dd4f 100644 --- a/resource-manager/insights/2022-06-01/datacollectionruleassociations/README.md +++ b/resource-manager/insights/2022-06-01/datacollectionruleassociations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations" ``` @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := datacollectionruleassociations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByResource(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceComplete(ctx, id) diff --git a/resource-manager/insights/2022-06-01/datacollectionrules/README.md b/resource-manager/insights/2022-06-01/datacollectionrules/README.md index ad6835ec0d7..c8688e52e35 100644 --- a/resource-manager/insights/2022-06-01/datacollectionrules/README.md +++ b/resource-manager/insights/2022-06-01/datacollectionrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datacollectionrules.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := datacollectionrules.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/insights/2022-10-01/autoscalesettings/README.md b/resource-manager/insights/2022-10-01/autoscalesettings/README.md index a5be0756b70..2413d4c4c26 100644 --- a/resource-manager/insights/2022-10-01/autoscalesettings/README.md +++ b/resource-manager/insights/2022-10-01/autoscalesettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := autoscalesettings.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := autoscalesettings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/insights/2023-01-01/actiongroupsapis/README.md b/resource-manager/insights/2023-01-01/actiongroupsapis/README.md index f38c5f0ad78..64836a2c7ff 100644 --- a/resource-manager/insights/2023-01-01/actiongroupsapis/README.md +++ b/resource-manager/insights/2023-01-01/actiongroupsapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis" ``` @@ -131,7 +132,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := actiongroupsapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ActionGroupsListByResourceGroup(ctx, id) if err != nil { @@ -147,7 +148,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := actiongroupsapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ActionGroupsListBySubscriptionId(ctx, id) if err != nil { diff --git a/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/README.md b/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/README.md index 8fe45b23c75..531d05ea8e2 100644 --- a/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/README.md +++ b/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledqueryrules.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scheduledqueryrules.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/insights/2023-04-03/azuremonitorworkspaces/README.md b/resource-manager/insights/2023-04-03/azuremonitorworkspaces/README.md index 91f8bfc638c..baaa60379b4 100644 --- a/resource-manager/insights/2023-04-03/azuremonitorworkspaces/README.md +++ b/resource-manager/insights/2023-04-03/azuremonitorworkspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := azuremonitorworkspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := azuremonitorworkspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/insights/2023-10-01/metricdefinitions/README.md b/resource-manager/insights/2023-10-01/metricdefinitions/README.md index 29b6c5f514d..54da9c0d150 100644 --- a/resource-manager/insights/2023-10-01/metricdefinitions/README.md +++ b/resource-manager/insights/2023-10-01/metricdefinitions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-10-01/metricdefinitions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := metricdefinitions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, metricdefinitions.DefaultListOperationOptions()) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := metricdefinitions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAtSubscriptionScope(ctx, id, metricdefinitions.DefaultListAtSubscriptionScopeOperationOptions()) if err != nil { diff --git a/resource-manager/insights/2023-10-01/metrics/README.md b/resource-manager/insights/2023-10-01/metrics/README.md index 349b4b3a241..a8a3e57f679 100644 --- a/resource-manager/insights/2023-10-01/metrics/README.md +++ b/resource-manager/insights/2023-10-01/metrics/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-10-01/metrics" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := metrics.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id, metrics.DefaultListOperationOptions()) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := metrics.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAtSubscriptionScope(ctx, id, metrics.DefaultListAtSubscriptionScopeOperationOptions()) if err != nil { @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := metrics.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := metrics.SubscriptionScopeMetricsRequestBodyParameters{ // ... diff --git a/resource-manager/iotcentral/2021-11-01-preview/apps/README.md b/resource-manager/iotcentral/2021-11-01-preview/apps/README.md index 02970109fb8..0758234c524 100644 --- a/resource-manager/iotcentral/2021-11-01-preview/apps/README.md +++ b/resource-manager/iotcentral/2021-11-01-preview/apps/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := apps.OperationInputs{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := apps.OperationInputs{ // ... @@ -111,7 +112,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apps.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -128,7 +129,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) @@ -145,7 +146,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListTemplates(ctx, id)` can be used to do batched pagination items, err := client.ListTemplatesComplete(ctx, id) diff --git a/resource-manager/keyvault/2023-02-01/keys/README.md b/resource-manager/keyvault/2023-02-01/keys/README.md index 02bcf11ef70..707ffec235b 100644 --- a/resource-manager/keyvault/2023-02-01/keys/README.md +++ b/resource-manager/keyvault/2023-02-01/keys/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/keys" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := keys.NewKeyVaultKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue") +id := commonids.NewKeyVaultKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue") payload := keys.KeyCreateParameters{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := keys.NewKeyVaultKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue") +id := commonids.NewKeyVaultKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := keys.NewKeyVaultKeyVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue", "versionValue") +id := commonids.NewKeyVaultKeyVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue", "versionValue") read, err := client.GetVersion(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := keys.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := keys.NewKeyVaultKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue") +id := commonids.NewKeyVaultKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue") // alternatively `client.ListVersions(ctx, id)` can be used to do batched pagination items, err := client.ListVersionsComplete(ctx, id) diff --git a/resource-manager/keyvault/2023-02-01/managedhsms/README.md b/resource-manager/keyvault/2023-02-01/managedhsms/README.md index ec7983862e4..7db306cb3fb 100644 --- a/resource-manager/keyvault/2023-02-01/managedhsms/README.md +++ b/resource-manager/keyvault/2023-02-01/managedhsms/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/managedhsms" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedhsms.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := managedhsms.CheckMhsmNameAvailabilityParameters{ // ... @@ -106,7 +107,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedhsms.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, managedhsms.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, managedhsms.DefaultListByResourceGroupOperationOptions()) @@ -123,7 +124,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedhsms.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, managedhsms.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, managedhsms.DefaultListBySubscriptionOperationOptions()) @@ -140,7 +141,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedhsms.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListDeleted(ctx, id)` can be used to do batched pagination items, err := client.ListDeletedComplete(ctx, id) diff --git a/resource-manager/keyvault/2023-02-01/privateendpointconnections/README.md b/resource-manager/keyvault/2023-02-01/privateendpointconnections/README.md index 2a2acb1a96a..fc6af346c6c 100644 --- a/resource-manager/keyvault/2023-02-01/privateendpointconnections/README.md +++ b/resource-manager/keyvault/2023-02-01/privateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/privateendpointconnections" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privateendpointconnections.NewKeyVaultPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "privateEndpointConnectionValue") +id := commonids.NewKeyVaultPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "privateEndpointConnectionValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +37,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewKeyVaultPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "privateEndpointConnectionValue") +id := commonids.NewKeyVaultPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "privateEndpointConnectionValue") read, err := client.Get(ctx, id) if err != nil { @@ -52,7 +53,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") // alternatively `client.ListByResource(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceComplete(ctx, id) @@ -69,7 +70,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privateendpointconnections.NewKeyVaultPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "privateEndpointConnectionValue") +id := commonids.NewKeyVaultPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "privateEndpointConnectionValue") payload := privateendpointconnections.PrivateEndpointConnection{ // ... diff --git a/resource-manager/keyvault/2023-02-01/privatelinkresources/README.md b/resource-manager/keyvault/2023-02-01/privatelinkresources/README.md index a5738cf735a..3d03d9a6ad0 100644 --- a/resource-manager/keyvault/2023-02-01/privatelinkresources/README.md +++ b/resource-manager/keyvault/2023-02-01/privatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/privatelinkresources" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkresources.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") read, err := client.ListByVault(ctx, id) if err != nil { diff --git a/resource-manager/keyvault/2023-02-01/secrets/README.md b/resource-manager/keyvault/2023-02-01/secrets/README.md index c6a9605beb0..ba8e8b1da1c 100644 --- a/resource-manager/keyvault/2023-02-01/secrets/README.md +++ b/resource-manager/keyvault/2023-02-01/secrets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/secrets" ``` @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := secrets.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") // alternatively `client.List(ctx, id, secrets.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, secrets.DefaultListOperationOptions()) diff --git a/resource-manager/keyvault/2023-02-01/vaults/README.md b/resource-manager/keyvault/2023-02-01/vaults/README.md index c4d2912f142..de34b3b96e4 100644 --- a/resource-manager/keyvault/2023-02-01/vaults/README.md +++ b/resource-manager/keyvault/2023-02-01/vaults/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := vaults.VaultCheckNameAvailabilityParameters{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") payload := vaults.VaultCreateOrUpdateParameters{ // ... @@ -62,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := vaults.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") read, err := client.Delete(ctx, id) if err != nil { @@ -78,7 +79,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") read, err := client.Get(ctx, id) if err != nil { @@ -110,7 +111,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, vaults.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, vaults.DefaultListOperationOptions()) @@ -127,7 +128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vaults.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, vaults.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, vaults.DefaultListByResourceGroupOperationOptions()) @@ -144,7 +145,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, vaults.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, vaults.DefaultListBySubscriptionOperationOptions()) @@ -161,7 +162,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListDeleted(ctx, id)` can be used to do batched pagination items, err := client.ListDeletedComplete(ctx, id) @@ -190,7 +191,7 @@ if err := client.PurgeDeletedThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := vaults.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") payload := vaults.VaultPatchParameters{ // ... diff --git a/resource-manager/keyvault/2023-07-01/keys/README.md b/resource-manager/keyvault/2023-07-01/keys/README.md index 71160bb6bb4..142422a36e8 100644 --- a/resource-manager/keyvault/2023-07-01/keys/README.md +++ b/resource-manager/keyvault/2023-07-01/keys/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/keys" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := keys.NewKeyVaultKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue") +id := commonids.NewKeyVaultKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue") payload := keys.KeyCreateParameters{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := keys.NewKeyVaultKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue") +id := commonids.NewKeyVaultKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := keys.NewKeyVaultKeyVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue", "versionValue") +id := commonids.NewKeyVaultKeyVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue", "versionValue") read, err := client.GetVersion(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := keys.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := keys.NewKeyVaultKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue") +id := commonids.NewKeyVaultKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "keyValue") // alternatively `client.ListVersions(ctx, id)` can be used to do batched pagination items, err := client.ListVersionsComplete(ctx, id) diff --git a/resource-manager/keyvault/2023-07-01/managedhsms/README.md b/resource-manager/keyvault/2023-07-01/managedhsms/README.md index cd6c3f0d6b3..7829fccab2f 100644 --- a/resource-manager/keyvault/2023-07-01/managedhsms/README.md +++ b/resource-manager/keyvault/2023-07-01/managedhsms/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedhsms.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := managedhsms.CheckMhsmNameAvailabilityParameters{ // ... @@ -106,7 +107,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedhsms.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, managedhsms.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, managedhsms.DefaultListByResourceGroupOperationOptions()) @@ -123,7 +124,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedhsms.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, managedhsms.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, managedhsms.DefaultListBySubscriptionOperationOptions()) @@ -140,7 +141,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedhsms.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListDeleted(ctx, id)` can be used to do batched pagination items, err := client.ListDeletedComplete(ctx, id) diff --git a/resource-manager/keyvault/2023-07-01/privateendpointconnections/README.md b/resource-manager/keyvault/2023-07-01/privateendpointconnections/README.md index 6cd2e29a461..6e3dce79024 100644 --- a/resource-manager/keyvault/2023-07-01/privateendpointconnections/README.md +++ b/resource-manager/keyvault/2023-07-01/privateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/privateendpointconnections" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privateendpointconnections.NewKeyVaultPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "privateEndpointConnectionValue") +id := commonids.NewKeyVaultPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "privateEndpointConnectionValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +37,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewKeyVaultPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "privateEndpointConnectionValue") +id := commonids.NewKeyVaultPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "privateEndpointConnectionValue") read, err := client.Get(ctx, id) if err != nil { @@ -52,7 +53,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") // alternatively `client.ListByResource(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceComplete(ctx, id) @@ -69,7 +70,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privateendpointconnections.NewKeyVaultPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "privateEndpointConnectionValue") +id := commonids.NewKeyVaultPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "privateEndpointConnectionValue") payload := privateendpointconnections.PrivateEndpointConnection{ // ... diff --git a/resource-manager/keyvault/2023-07-01/privatelinkresources/README.md b/resource-manager/keyvault/2023-07-01/privatelinkresources/README.md index acec45b14a3..d9ce6058612 100644 --- a/resource-manager/keyvault/2023-07-01/privatelinkresources/README.md +++ b/resource-manager/keyvault/2023-07-01/privatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/privatelinkresources" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkresources.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") read, err := client.ListByVault(ctx, id) if err != nil { diff --git a/resource-manager/keyvault/2023-07-01/secrets/README.md b/resource-manager/keyvault/2023-07-01/secrets/README.md index 2186024f334..50326165058 100644 --- a/resource-manager/keyvault/2023-07-01/secrets/README.md +++ b/resource-manager/keyvault/2023-07-01/secrets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/secrets" ``` @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := secrets.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") // alternatively `client.List(ctx, id, secrets.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, secrets.DefaultListOperationOptions()) diff --git a/resource-manager/keyvault/2023-07-01/vaults/README.md b/resource-manager/keyvault/2023-07-01/vaults/README.md index b323e68136d..71809e8b1b0 100644 --- a/resource-manager/keyvault/2023-07-01/vaults/README.md +++ b/resource-manager/keyvault/2023-07-01/vaults/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := vaults.VaultCheckNameAvailabilityParameters{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") payload := vaults.VaultCreateOrUpdateParameters{ // ... @@ -62,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := vaults.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") read, err := client.Delete(ctx, id) if err != nil { @@ -78,7 +79,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") read, err := client.Get(ctx, id) if err != nil { @@ -110,7 +111,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, vaults.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, vaults.DefaultListOperationOptions()) @@ -127,7 +128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vaults.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, vaults.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, vaults.DefaultListByResourceGroupOperationOptions()) @@ -144,7 +145,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, vaults.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, vaults.DefaultListBySubscriptionOperationOptions()) @@ -161,7 +162,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListDeleted(ctx, id)` can be used to do batched pagination items, err := client.ListDeletedComplete(ctx, id) @@ -190,7 +191,7 @@ if err := client.PurgeDeletedThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := vaults.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") payload := vaults.VaultPatchParameters{ // ... diff --git a/resource-manager/kubernetesconfiguration/2022-03-01/clusterextensions/README.md b/resource-manager/kubernetesconfiguration/2022-03-01/clusterextensions/README.md index 56fc8b78aa7..b2184b49948 100644 --- a/resource-manager/kubernetesconfiguration/2022-03-01/clusterextensions/README.md +++ b/resource-manager/kubernetesconfiguration/2022-03-01/clusterextensions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-03-01/clusterextensions" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusterextensions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ExtensionsList(ctx, id)` can be used to do batched pagination items, err := client.ExtensionsListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2022-03-01/extensions/README.md b/resource-manager/kubernetesconfiguration/2022-03-01/extensions/README.md index 4390097d766..85bd4e177aa 100644 --- a/resource-manager/kubernetesconfiguration/2022-03-01/extensions/README.md +++ b/resource-manager/kubernetesconfiguration/2022-03-01/extensions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-03-01/extensions" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := extensions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2022-03-01/flux/README.md b/resource-manager/kubernetesconfiguration/2022-03-01/flux/README.md index ec6cac9b9ee..a5a4ee66d99 100644 --- a/resource-manager/kubernetesconfiguration/2022-03-01/flux/README.md +++ b/resource-manager/kubernetesconfiguration/2022-03-01/flux/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-03-01/flux" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := flux.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.ConfigurationsListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2022-03-01/fluxconfiguration/README.md b/resource-manager/kubernetesconfiguration/2022-03-01/fluxconfiguration/README.md index 5328ee78d17..2bb3f541b25 100644 --- a/resource-manager/kubernetesconfiguration/2022-03-01/fluxconfiguration/README.md +++ b/resource-manager/kubernetesconfiguration/2022-03-01/fluxconfiguration/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-03-01/fluxconfiguration" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fluxconfiguration.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2022-03-01/operationsinacluster/README.md b/resource-manager/kubernetesconfiguration/2022-03-01/operationsinacluster/README.md index 8867e1f82f2..3a70010c0b6 100644 --- a/resource-manager/kubernetesconfiguration/2022-03-01/operationsinacluster/README.md +++ b/resource-manager/kubernetesconfiguration/2022-03-01/operationsinacluster/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-03-01/operationsinacluster" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operationsinacluster.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.OperationStatusList(ctx, id)` can be used to do batched pagination items, err := client.OperationStatusListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2022-03-01/sourcecontrolconfiguration/README.md b/resource-manager/kubernetesconfiguration/2022-03-01/sourcecontrolconfiguration/README.md index 313f2a60926..5d2ae784ccb 100644 --- a/resource-manager/kubernetesconfiguration/2022-03-01/sourcecontrolconfiguration/README.md +++ b/resource-manager/kubernetesconfiguration/2022-03-01/sourcecontrolconfiguration/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-03-01/sourcecontrolconfiguration" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sourcecontrolconfiguration.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/clusterextensions/README.md b/resource-manager/kubernetesconfiguration/2022-11-01/clusterextensions/README.md index 39af909dfa5..92a1d67300b 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/clusterextensions/README.md +++ b/resource-manager/kubernetesconfiguration/2022-11-01/clusterextensions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/clusterextensions" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusterextensions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ExtensionsList(ctx, id)` can be used to do batched pagination items, err := client.ExtensionsListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/extensions/README.md b/resource-manager/kubernetesconfiguration/2022-11-01/extensions/README.md index bcdb43223e4..e8c176d6fc7 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/extensions/README.md +++ b/resource-manager/kubernetesconfiguration/2022-11-01/extensions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := extensions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/flux/README.md b/resource-manager/kubernetesconfiguration/2022-11-01/flux/README.md index 5be339a55c9..812a8b01a4e 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/flux/README.md +++ b/resource-manager/kubernetesconfiguration/2022-11-01/flux/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/flux" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := flux.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.ConfigurationsListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/README.md b/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/README.md index 56908e74792..c679fa96f87 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/README.md +++ b/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fluxconfiguration.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/operationsinacluster/README.md b/resource-manager/kubernetesconfiguration/2022-11-01/operationsinacluster/README.md index 0cdb48422cb..9081fa6e467 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/operationsinacluster/README.md +++ b/resource-manager/kubernetesconfiguration/2022-11-01/operationsinacluster/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/operationsinacluster" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operationsinacluster.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.OperationStatusList(ctx, id)` can be used to do batched pagination items, err := client.OperationStatusListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/sourcecontrolconfiguration/README.md b/resource-manager/kubernetesconfiguration/2022-11-01/sourcecontrolconfiguration/README.md index f7834e3f6e6..6e576fea760 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/sourcecontrolconfiguration/README.md +++ b/resource-manager/kubernetesconfiguration/2022-11-01/sourcecontrolconfiguration/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/sourcecontrolconfiguration" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sourcecontrolconfiguration.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/clusterextensions/README.md b/resource-manager/kubernetesconfiguration/2023-05-01/clusterextensions/README.md index 2f314b487fd..6395f616b64 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/clusterextensions/README.md +++ b/resource-manager/kubernetesconfiguration/2023-05-01/clusterextensions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/clusterextensions" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusterextensions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ExtensionsList(ctx, id)` can be used to do batched pagination items, err := client.ExtensionsListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/extensions/README.md b/resource-manager/kubernetesconfiguration/2023-05-01/extensions/README.md index 8dbbabccd84..b4344f73d7d 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/extensions/README.md +++ b/resource-manager/kubernetesconfiguration/2023-05-01/extensions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/extensions" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := extensions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/flux/README.md b/resource-manager/kubernetesconfiguration/2023-05-01/flux/README.md index 33988aa1a96..6a9afcc5e73 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/flux/README.md +++ b/resource-manager/kubernetesconfiguration/2023-05-01/flux/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/flux" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := flux.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.ConfigurationsListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/README.md b/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/README.md index c78864a0c91..6ca5dbfb13a 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/README.md +++ b/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fluxconfiguration.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/operationsinacluster/README.md b/resource-manager/kubernetesconfiguration/2023-05-01/operationsinacluster/README.md index 6491a0cc7fc..19952f617c5 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/operationsinacluster/README.md +++ b/resource-manager/kubernetesconfiguration/2023-05-01/operationsinacluster/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/operationsinacluster" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operationsinacluster.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.OperationStatusList(ctx, id)` can be used to do batched pagination items, err := client.OperationStatusListComplete(ctx, id) diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/sourcecontrolconfiguration/README.md b/resource-manager/kubernetesconfiguration/2023-05-01/sourcecontrolconfiguration/README.md index 8d34e855435..f88eedbc22b 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/sourcecontrolconfiguration/README.md +++ b/resource-manager/kubernetesconfiguration/2023-05-01/sourcecontrolconfiguration/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/sourcecontrolconfiguration" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sourcecontrolconfiguration.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/README.md b/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/README.md index 2146c96e8d3..ebab7e59cfb 100644 --- a/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/README.md +++ b/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := attacheddatabaseconfigurations.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := attacheddatabaseconfigurations.AttachedDatabaseConfigurationsCheckNameRequest{ // ... @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := attacheddatabaseconfigurations.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.ListByCluster(ctx, id) if err != nil { diff --git a/resource-manager/kusto/2023-08-15/clusterprincipalassignments/README.md b/resource-manager/kusto/2023-08-15/clusterprincipalassignments/README.md index aa1870a41ef..7f4a0a73dec 100644 --- a/resource-manager/kusto/2023-08-15/clusterprincipalassignments/README.md +++ b/resource-manager/kusto/2023-08-15/clusterprincipalassignments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := clusterprincipalassignments.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusterprincipalassignments.ClusterPrincipalAssignmentCheckNameRequest{ // ... @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusterprincipalassignments.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/kusto/2023-08-15/clusters/README.md b/resource-manager/kusto/2023-08-15/clusters/README.md index 78ac26027a4..2151c074450 100644 --- a/resource-manager/kusto/2023-08-15/clusters/README.md +++ b/resource-manager/kusto/2023-08-15/clusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := clusters.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.LanguageExtensionsList{ // ... @@ -62,7 +63,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.Cluster{ // ... @@ -79,7 +80,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, clusters.DefaultCreate ```go ctx := context.TODO() -id := clusters.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -91,7 +92,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := clusters.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.FollowerDatabaseDefinition{ // ... @@ -108,7 +109,7 @@ if err := client.DetachFollowerDatabasesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") if err := client.DiagnoseVirtualNetworkThenPoll(ctx, id); err != nil { // handle the error @@ -120,7 +121,7 @@ if err := client.DiagnoseVirtualNetworkThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := clusters.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.Get(ctx, id) if err != nil { @@ -136,7 +137,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -152,7 +153,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -168,7 +169,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.ListFollowerDatabases(ctx, id) if err != nil { @@ -184,7 +185,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.ListLanguageExtensions(ctx, id) if err != nil { @@ -200,7 +201,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.ListSkusByResource(ctx, id) if err != nil { @@ -216,7 +217,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.ClusterMigrateRequest{ // ... @@ -233,7 +234,7 @@ if err := client.MigrateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.LanguageExtensionsList{ // ... @@ -250,7 +251,7 @@ if err := client.RemoveLanguageExtensionsThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := clusters.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -262,7 +263,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := clusters.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -274,7 +275,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := clusters.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := clusters.ClusterUpdate{ // ... diff --git a/resource-manager/kusto/2023-08-15/databaseprincipalassignments/README.md b/resource-manager/kusto/2023-08-15/databaseprincipalassignments/README.md index 9a19ce9305c..1faaa5fa596 100644 --- a/resource-manager/kusto/2023-08-15/databaseprincipalassignments/README.md +++ b/resource-manager/kusto/2023-08-15/databaseprincipalassignments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databaseprincipalassignments.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") payload := databaseprincipalassignments.DatabasePrincipalAssignmentCheckNameRequest{ // ... @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databaseprincipalassignments.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/kusto/2023-08-15/databases/README.md b/resource-manager/kusto/2023-08-15/databases/README.md index 17950608db0..fd68f465342 100644 --- a/resource-manager/kusto/2023-08-15/databases/README.md +++ b/resource-manager/kusto/2023-08-15/databases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databases.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") payload := databases.DatabasePrincipalListRequest{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databases.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := databases.CheckNameRequest{ // ... @@ -66,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databases.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") payload := databases.Database{ // ... @@ -83,7 +84,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, databases.DefaultCreat ```go ctx := context.TODO() -id := databases.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") payload := databases.DatabaseInviteFollowerRequest{ // ... @@ -104,7 +105,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databases.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -116,7 +117,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := databases.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -132,7 +133,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databases.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") // alternatively `client.ListByCluster(ctx, id, databases.DefaultListByClusterOperationOptions())` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id, databases.DefaultListByClusterOperationOptions()) @@ -149,7 +150,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := databases.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") read, err := client.ListPrincipals(ctx, id) if err != nil { @@ -165,7 +166,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databases.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") payload := databases.DatabasePrincipalListRequest{ // ... @@ -186,7 +187,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databases.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") payload := databases.Database{ // ... diff --git a/resource-manager/kusto/2023-08-15/dataconnections/README.md b/resource-manager/kusto/2023-08-15/dataconnections/README.md index 5a46fdbc34e..57e4d989713 100644 --- a/resource-manager/kusto/2023-08-15/dataconnections/README.md +++ b/resource-manager/kusto/2023-08-15/dataconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dataconnections.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") payload := dataconnections.DataConnectionCheckNameRequest{ // ... @@ -62,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := dataconnections.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") payload := dataconnections.DataConnectionValidation{ // ... @@ -107,7 +108,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dataconnections.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") read, err := client.ListByDatabase(ctx, id) if err != nil { diff --git a/resource-manager/kusto/2023-08-15/kusto/README.md b/resource-manager/kusto/2023-08-15/kusto/README.md index d63e088e9b5..922ae884716 100644 --- a/resource-manager/kusto/2023-08-15/kusto/README.md +++ b/resource-manager/kusto/2023-08-15/kusto/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/kusto" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := kusto.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ClustersListSkus(ctx, id) if err != nil { diff --git a/resource-manager/kusto/2023-08-15/managedprivateendpoints/README.md b/resource-manager/kusto/2023-08-15/managedprivateendpoints/README.md index 32926dd55d8..17ac7f30890 100644 --- a/resource-manager/kusto/2023-08-15/managedprivateendpoints/README.md +++ b/resource-manager/kusto/2023-08-15/managedprivateendpoints/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedprivateendpoints.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := managedprivateendpoints.ManagedPrivateEndpointsCheckNameRequest{ // ... @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedprivateendpoints.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/kusto/2023-08-15/outboundnetworkdependenciesendpoints/README.md b/resource-manager/kusto/2023-08-15/outboundnetworkdependenciesendpoints/README.md index 4b66c1f7bb5..a55f23a9be5 100644 --- a/resource-manager/kusto/2023-08-15/outboundnetworkdependenciesendpoints/README.md +++ b/resource-manager/kusto/2023-08-15/outboundnetworkdependenciesendpoints/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/outboundnetworkdependenciesendpoints" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := outboundnetworkdependenciesendpoints.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") // alternatively `client.ClustersListOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.ClustersListOutboundNetworkDependenciesEndpointsComplete(ctx, id) diff --git a/resource-manager/kusto/2023-08-15/privateendpointconnections/README.md b/resource-manager/kusto/2023-08-15/privateendpointconnections/README.md index ac04596bb2b..b3dcc9ee939 100644 --- a/resource-manager/kusto/2023-08-15/privateendpointconnections/README.md +++ b/resource-manager/kusto/2023-08-15/privateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/privateendpointconnections" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/kusto/2023-08-15/privatelinkresources/README.md b/resource-manager/kusto/2023-08-15/privatelinkresources/README.md index 13841fc51f2..d21c729874f 100644 --- a/resource-manager/kusto/2023-08-15/privatelinkresources/README.md +++ b/resource-manager/kusto/2023-08-15/privatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/privatelinkresources" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkresources.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/kusto/2023-08-15/sandboxcustomimages/README.md b/resource-manager/kusto/2023-08-15/sandboxcustomimages/README.md index 06a47f6ec80..7176af02033 100644 --- a/resource-manager/kusto/2023-08-15/sandboxcustomimages/README.md +++ b/resource-manager/kusto/2023-08-15/sandboxcustomimages/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/sandboxcustomimages" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sandboxcustomimages.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") payload := sandboxcustomimages.SandboxCustomImagesCheckNameRequest{ // ... @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sandboxcustomimages.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") read, err := client.ListByCluster(ctx, id) if err != nil { diff --git a/resource-manager/kusto/2023-08-15/scripts/README.md b/resource-manager/kusto/2023-08-15/scripts/README.md index c71812fd4b6..be0f6e7e2c5 100644 --- a/resource-manager/kusto/2023-08-15/scripts/README.md +++ b/resource-manager/kusto/2023-08-15/scripts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := scripts.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") payload := scripts.ScriptCheckNameRequest{ // ... @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scripts.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") read, err := client.ListByDatabase(ctx, id) if err != nil { diff --git a/resource-manager/labservices/2021-10-01-preview/lab/README.md b/resource-manager/labservices/2021-10-01-preview/lab/README.md index 917617c6303..b69a97e6066 100644 --- a/resource-manager/labservices/2021-10-01-preview/lab/README.md +++ b/resource-manager/labservices/2021-10-01-preview/lab/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2021-10-01-preview/lab" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := lab.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := lab.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/labservices/2021-10-01-preview/labplan/README.md b/resource-manager/labservices/2021-10-01-preview/labplan/README.md index 6729db4c143..4be366605ec 100644 --- a/resource-manager/labservices/2021-10-01-preview/labplan/README.md +++ b/resource-manager/labservices/2021-10-01-preview/labplan/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2021-10-01-preview/labplan" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := labplan.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := labplan.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/labservices/2022-08-01/lab/README.md b/resource-manager/labservices/2022-08-01/lab/README.md index a7fa2a3b2eb..ba17399d5ec 100644 --- a/resource-manager/labservices/2022-08-01/lab/README.md +++ b/resource-manager/labservices/2022-08-01/lab/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2022-08-01/lab" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := lab.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := lab.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/labservices/2022-08-01/labplan/README.md b/resource-manager/labservices/2022-08-01/labplan/README.md index b36d9ed1dad..1012bf36f32 100644 --- a/resource-manager/labservices/2022-08-01/labplan/README.md +++ b/resource-manager/labservices/2022-08-01/labplan/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2022-08-01/labplan" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := labplan.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := labplan.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/labservices/2022-08-01/skus/README.md b/resource-manager/labservices/2022-08-01/skus/README.md index ca233eee8ce..8dcebcd3fb9 100644 --- a/resource-manager/labservices/2022-08-01/skus/README.md +++ b/resource-manager/labservices/2022-08-01/skus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2022-08-01/skus" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := skus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/labservices/2023-06-07/lab/README.md b/resource-manager/labservices/2023-06-07/lab/README.md index 0280eca1a3b..4bf8d1df04b 100644 --- a/resource-manager/labservices/2023-06-07/lab/README.md +++ b/resource-manager/labservices/2023-06-07/lab/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2023-06-07/lab" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := lab.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := lab.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/labservices/2023-06-07/labplan/README.md b/resource-manager/labservices/2023-06-07/labplan/README.md index 953211b802d..7a84ab800b0 100644 --- a/resource-manager/labservices/2023-06-07/labplan/README.md +++ b/resource-manager/labservices/2023-06-07/labplan/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2023-06-07/labplan" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := labplan.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := labplan.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/labservices/2023-06-07/skus/README.md b/resource-manager/labservices/2023-06-07/skus/README.md index 5c216211df4..32e4046e9fe 100644 --- a/resource-manager/labservices/2023-06-07/skus/README.md +++ b/resource-manager/labservices/2023-06-07/skus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2023-06-07/skus" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := skus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/loadtestservice/2022-12-01/loadtests/README.md b/resource-manager/loadtestservice/2022-12-01/loadtests/README.md index b3eff37847b..0170ed8f451 100644 --- a/resource-manager/loadtestservice/2022-12-01/loadtests/README.md +++ b/resource-manager/loadtestservice/2022-12-01/loadtests/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadtests.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadtests.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/logic/2019-05-01/integrationaccounts/README.md b/resource-manager/logic/2019-05-01/integrationaccounts/README.md index ad9bdbb6408..9daef13bf31 100644 --- a/resource-manager/logic/2019-05-01/integrationaccounts/README.md +++ b/resource-manager/logic/2019-05-01/integrationaccounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccounts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, integrationaccounts.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, integrationaccounts.DefaultListByResourceGroupOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := integrationaccounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, integrationaccounts.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, integrationaccounts.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/logic/2019-05-01/integrationserviceenvironments/README.md b/resource-manager/logic/2019-05-01/integrationserviceenvironments/README.md index 04c9cf7d6ce..c0bb6b0e055 100644 --- a/resource-manager/logic/2019-05-01/integrationserviceenvironments/README.md +++ b/resource-manager/logic/2019-05-01/integrationserviceenvironments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationserviceenvironments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, integrationserviceenvironments.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, integrationserviceenvironments.DefaultListByResourceGroupOperationOptions()) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := integrationserviceenvironments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, integrationserviceenvironments.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, integrationserviceenvironments.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/logic/2019-05-01/workflows/README.md b/resource-manager/logic/2019-05-01/workflows/README.md index 4626b0cc068..99ef5284e22 100644 --- a/resource-manager/logic/2019-05-01/workflows/README.md +++ b/resource-manager/logic/2019-05-01/workflows/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows" ``` @@ -130,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflows.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, workflows.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, workflows.DefaultListByResourceGroupOperationOptions()) @@ -147,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workflows.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, workflows.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, workflows.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/logz/2020-10-01/monitors/README.md b/resource-manager/logz/2020-10-01/monitors/README.md index 33e508068ca..e856ffb42e4 100644 --- a/resource-manager/logz/2020-10-01/monitors/README.md +++ b/resource-manager/logz/2020-10-01/monitors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := monitors.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitors.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/machinelearningservices/2023-10-01/registrymanagement/README.md b/resource-manager/machinelearningservices/2023-10-01/registrymanagement/README.md index 86c5653a0ec..d3f37d47a65 100644 --- a/resource-manager/machinelearningservices/2023-10-01/registrymanagement/README.md +++ b/resource-manager/machinelearningservices/2023-10-01/registrymanagement/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2023-10-01/registrymanagement" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := registrymanagement.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.RegistriesList(ctx, id)` can be used to do batched pagination items, err := client.RegistriesListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := registrymanagement.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.RegistriesListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.RegistriesListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/machinelearningservices/2023-10-01/workspaces/README.md b/resource-manager/machinelearningservices/2023-10-01/workspaces/README.md index f29dd6a9fcc..ac74446c3d1 100644 --- a/resource-manager/machinelearningservices/2023-10-01/workspaces/README.md +++ b/resource-manager/machinelearningservices/2023-10-01/workspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2023-10-01/workspaces" ``` @@ -86,7 +87,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, workspaces.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, workspaces.DefaultListByResourceGroupOperationOptions()) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, workspaces.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, workspaces.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/maintenance/2022-07-01-preview/applyupdate/README.md b/resource-manager/maintenance/2022-07-01-preview/applyupdate/README.md index 7520e8416a4..f3ce81f4391 100644 --- a/resource-manager/maintenance/2022-07-01-preview/applyupdate/README.md +++ b/resource-manager/maintenance/2022-07-01-preview/applyupdate/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2022-07-01-preview/applyupdate" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := applyupdate.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ForResourceGroupList(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applyupdate.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/maintenance/2022-07-01-preview/applyupdates/README.md b/resource-manager/maintenance/2022-07-01-preview/applyupdates/README.md index b13a8ab8556..754dbd8617f 100644 --- a/resource-manager/maintenance/2022-07-01-preview/applyupdates/README.md +++ b/resource-manager/maintenance/2022-07-01-preview/applyupdates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2022-07-01-preview/applyupdates" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := applyupdates.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.CreateOrUpdate(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applyupdates.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.CreateOrUpdateParent(ctx, id) if err != nil { diff --git a/resource-manager/maintenance/2022-07-01-preview/configurationassignments/README.md b/resource-manager/maintenance/2022-07-01-preview/configurationassignments/README.md index c0f7731b298..e92b4772872 100644 --- a/resource-manager/maintenance/2022-07-01-preview/configurationassignments/README.md +++ b/resource-manager/maintenance/2022-07-01-preview/configurationassignments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2022-07-01-preview/configurationassignments" ``` @@ -130,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id) if err != nil { @@ -146,7 +147,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.ListParent(ctx, id) if err != nil { @@ -162,7 +163,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.WithinSubscriptionList(ctx, id) if err != nil { diff --git a/resource-manager/maintenance/2022-07-01-preview/maintenanceconfigurations/README.md b/resource-manager/maintenance/2022-07-01-preview/maintenanceconfigurations/README.md index 41f891ed325..3647244df13 100644 --- a/resource-manager/maintenance/2022-07-01-preview/maintenanceconfigurations/README.md +++ b/resource-manager/maintenance/2022-07-01-preview/maintenanceconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2022-07-01-preview/maintenanceconfigurations" ``` @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ForResourceGroupList(ctx, id) if err != nil { @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/maintenance/2022-07-01-preview/publicmaintenanceconfigurations/README.md b/resource-manager/maintenance/2022-07-01-preview/publicmaintenanceconfigurations/README.md index ae8e287a56f..323169c8d42 100644 --- a/resource-manager/maintenance/2022-07-01-preview/publicmaintenanceconfigurations/README.md +++ b/resource-manager/maintenance/2022-07-01-preview/publicmaintenanceconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2022-07-01-preview/publicmaintenanceconfigurations" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := publicmaintenanceconfigurations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/maintenance/2022-07-01-preview/updates/README.md b/resource-manager/maintenance/2022-07-01-preview/updates/README.md index 79fae36c52b..44e78852f8b 100644 --- a/resource-manager/maintenance/2022-07-01-preview/updates/README.md +++ b/resource-manager/maintenance/2022-07-01-preview/updates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2022-07-01-preview/updates" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := updates.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := updates.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.ListParent(ctx, id) if err != nil { diff --git a/resource-manager/maintenance/2023-04-01/applyupdates/README.md b/resource-manager/maintenance/2023-04-01/applyupdates/README.md index 9eb20cd001c..59b84f37d0f 100644 --- a/resource-manager/maintenance/2023-04-01/applyupdates/README.md +++ b/resource-manager/maintenance/2023-04-01/applyupdates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/applyupdates" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := applyupdates.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.CreateOrUpdate(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applyupdates.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.CreateOrUpdateParent(ctx, id) if err != nil { diff --git a/resource-manager/maintenance/2023-04-01/configurationassignments/README.md b/resource-manager/maintenance/2023-04-01/configurationassignments/README.md index 35dcb3c5ca2..a9af7caa3c7 100644 --- a/resource-manager/maintenance/2023-04-01/configurationassignments/README.md +++ b/resource-manager/maintenance/2023-04-01/configurationassignments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments" ``` @@ -278,7 +279,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id) if err != nil { @@ -294,7 +295,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.ListParent(ctx, id) if err != nil { @@ -310,7 +311,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.WithinSubscriptionList(ctx, id) if err != nil { diff --git a/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/README.md b/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/README.md index d7c9afc69f1..0ffe55c3361 100644 --- a/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/README.md +++ b/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations" ``` @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ForResourceGroupList(ctx, id) if err != nil { @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/README.md b/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/README.md index b3ec27af250..1ec7be78d42 100644 --- a/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/README.md +++ b/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := publicmaintenanceconfigurations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/maintenance/2023-04-01/updates/README.md b/resource-manager/maintenance/2023-04-01/updates/README.md index 413e62eb6f9..366ac9450fd 100644 --- a/resource-manager/maintenance/2023-04-01/updates/README.md +++ b/resource-manager/maintenance/2023-04-01/updates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/updates" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := updates.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.List(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := updates.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.ListParent(ctx, id) if err != nil { diff --git a/resource-manager/managedapplications/2019-07-01/applicationdefinitions/README.md b/resource-manager/managedapplications/2019-07-01/applicationdefinitions/README.md index 5b979e36932..b1e3264d4dd 100644 --- a/resource-manager/managedapplications/2019-07-01/applicationdefinitions/README.md +++ b/resource-manager/managedapplications/2019-07-01/applicationdefinitions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2019-07-01/applicationdefinitions" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationdefinitions.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationdefinitions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/managedapplications/2019-07-01/applications/README.md b/resource-manager/managedapplications/2019-07-01/applications/README.md index f0692f7e2eb..4ffbc544c49 100644 --- a/resource-manager/managedapplications/2019-07-01/applications/README.md +++ b/resource-manager/managedapplications/2019-07-01/applications/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2019-07-01/applications" ``` @@ -130,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applications.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -147,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applications.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/managedapplications/2019-07-01/jitrequests/README.md b/resource-manager/managedapplications/2019-07-01/jitrequests/README.md index 8b74c454c8a..e34e1b9c4f8 100644 --- a/resource-manager/managedapplications/2019-07-01/jitrequests/README.md +++ b/resource-manager/managedapplications/2019-07-01/jitrequests/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2019-07-01/jitrequests" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jitrequests.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -89,7 +90,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jitrequests.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/managedapplications/2021-07-01/applicationdefinitions/README.md b/resource-manager/managedapplications/2021-07-01/applicationdefinitions/README.md index fa14bbada5e..98a4d423856 100644 --- a/resource-manager/managedapplications/2021-07-01/applicationdefinitions/README.md +++ b/resource-manager/managedapplications/2021-07-01/applicationdefinitions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationdefinitions.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationdefinitions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/managedapplications/2021-07-01/applications/README.md b/resource-manager/managedapplications/2021-07-01/applications/README.md index 01e1ac7eedb..102f7fc5c40 100644 --- a/resource-manager/managedapplications/2021-07-01/applications/README.md +++ b/resource-manager/managedapplications/2021-07-01/applications/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications" ``` @@ -130,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applications.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -147,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applications.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/managedapplications/2021-07-01/jitrequests/README.md b/resource-manager/managedapplications/2021-07-01/jitrequests/README.md index bf4e8c6a5fd..d2d60957ea4 100644 --- a/resource-manager/managedapplications/2021-07-01/jitrequests/README.md +++ b/resource-manager/managedapplications/2021-07-01/jitrequests/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/jitrequests" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jitrequests.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -89,7 +90,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jitrequests.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/managedidentity/2023-01-31/managedidentities/README.md b/resource-manager/managedidentity/2023-01-31/managedidentities/README.md index 2778e58772f..1fdb33c639a 100644 --- a/resource-manager/managedidentity/2023-01-31/managedidentities/README.md +++ b/resource-manager/managedidentity/2023-01-31/managedidentities/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedidentities.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue") +id := commonids.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue") // alternatively `client.FederatedIdentityCredentialsList(ctx, id, managedidentities.DefaultFederatedIdentityCredentialsListOperationOptions())` can be used to do batched pagination items, err := client.FederatedIdentityCredentialsListComplete(ctx, id, managedidentities.DefaultFederatedIdentityCredentialsListOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedidentities.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.SystemAssignedIdentitiesGetByScope(ctx, id) if err != nil { @@ -110,7 +111,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedidentities.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue") +id := commonids.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue") payload := managedidentities.Identity{ // ... @@ -131,7 +132,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedidentities.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue") +id := commonids.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue") read, err := client.UserAssignedIdentitiesDelete(ctx, id) if err != nil { @@ -147,7 +148,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedidentities.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue") +id := commonids.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue") read, err := client.UserAssignedIdentitiesGet(ctx, id) if err != nil { @@ -163,7 +164,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedidentities.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.UserAssignedIdentitiesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.UserAssignedIdentitiesListByResourceGroupComplete(ctx, id) @@ -180,7 +181,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedidentities.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.UserAssignedIdentitiesListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.UserAssignedIdentitiesListBySubscriptionComplete(ctx, id) @@ -197,7 +198,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedidentities.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue") +id := commonids.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue") payload := managedidentities.IdentityUpdate{ // ... diff --git a/resource-manager/managedservices/2019-06-01/registrationassignments/README.md b/resource-manager/managedservices/2019-06-01/registrationassignments/README.md index f31f28ef722..d292c36433b 100644 --- a/resource-manager/managedservices/2019-06-01/registrationassignments/README.md +++ b/resource-manager/managedservices/2019-06-01/registrationassignments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2019-06-01/registrationassignments" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := registrationassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, registrationassignments.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, registrationassignments.DefaultListOperationOptions()) diff --git a/resource-manager/managedservices/2019-06-01/registrationdefinitions/README.md b/resource-manager/managedservices/2019-06-01/registrationdefinitions/README.md index 771e889a2ab..d1d8d3fa28a 100644 --- a/resource-manager/managedservices/2019-06-01/registrationdefinitions/README.md +++ b/resource-manager/managedservices/2019-06-01/registrationdefinitions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2019-06-01/registrationdefinitions" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := registrationdefinitions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/managedservices/2022-10-01/marketplaceregistrationdefinitions/README.md b/resource-manager/managedservices/2022-10-01/marketplaceregistrationdefinitions/README.md index 3b950e6d1bd..cc7810de6cb 100644 --- a/resource-manager/managedservices/2022-10-01/marketplaceregistrationdefinitions/README.md +++ b/resource-manager/managedservices/2022-10-01/marketplaceregistrationdefinitions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/marketplaceregistrationdefinitions" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := marketplaceregistrationdefinitions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, marketplaceregistrationdefinitions.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, marketplaceregistrationdefinitions.DefaultListOperationOptions()) diff --git a/resource-manager/managedservices/2022-10-01/operations/README.md b/resource-manager/managedservices/2022-10-01/operations/README.md index 8d639d2c751..cb263e2444c 100644 --- a/resource-manager/managedservices/2022-10-01/operations/README.md +++ b/resource-manager/managedservices/2022-10-01/operations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/operations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.WithScopeList(ctx, id) if err != nil { diff --git a/resource-manager/managedservices/2022-10-01/registrationassignments/README.md b/resource-manager/managedservices/2022-10-01/registrationassignments/README.md index 8e0b84086dc..6818977af77 100644 --- a/resource-manager/managedservices/2022-10-01/registrationassignments/README.md +++ b/resource-manager/managedservices/2022-10-01/registrationassignments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := registrationassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, registrationassignments.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, registrationassignments.DefaultListOperationOptions()) diff --git a/resource-manager/managedservices/2022-10-01/registrationdefinitions/README.md b/resource-manager/managedservices/2022-10-01/registrationdefinitions/README.md index eb72a1047e9..5566dcfeb6e 100644 --- a/resource-manager/managedservices/2022-10-01/registrationdefinitions/README.md +++ b/resource-manager/managedservices/2022-10-01/registrationdefinitions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := registrationdefinitions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id, registrationdefinitions.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, registrationdefinitions.DefaultListOperationOptions()) diff --git a/resource-manager/managementgroups/2020-05-01/managementgroups/README.md b/resource-manager/managementgroups/2020-05-01/managementgroups/README.md index fe1c56275b8..145e784f346 100644 --- a/resource-manager/managementgroups/2020-05-01/managementgroups/README.md +++ b/resource-manager/managementgroups/2020-05-01/managementgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") payload := managementgroups.CreateManagementGroupRequest{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, managementgroups.Defau ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") if err := client.DeleteThenPoll(ctx, id, managementgroups.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, managementgroups.DefaultDeleteOperation ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.Get(ctx, id, managementgroups.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") // alternatively `client.GetDescendants(ctx, id, managementgroups.DefaultGetDescendantsOperationOptions())` can be used to do batched pagination items, err := client.GetDescendantsComplete(ctx, id, managementgroups.DefaultGetDescendantsOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") payload := managementgroups.CreateOrUpdateSettingsRequest{ // ... @@ -107,7 +108,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.HierarchySettingsDelete(ctx, id) if err != nil { @@ -123,7 +124,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.HierarchySettingsGet(ctx, id) if err != nil { @@ -139,7 +140,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.HierarchySettingsList(ctx, id) if err != nil { @@ -155,7 +156,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") payload := managementgroups.CreateOrUpdateSettingsRequest{ // ... @@ -241,7 +242,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") // alternatively `client.UbscriptionsGetSubscriptionsUnderManagementGroup(ctx, id)` can be used to do batched pagination items, err := client.UbscriptionsGetSubscriptionsUnderManagementGroupComplete(ctx, id) @@ -258,7 +259,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") payload := managementgroups.PatchManagementGroupRequest{ // ... diff --git a/resource-manager/managementgroups/2021-04-01/managementgroups/README.md b/resource-manager/managementgroups/2021-04-01/managementgroups/README.md index ac9a5b44beb..b496a14c0e1 100644 --- a/resource-manager/managementgroups/2021-04-01/managementgroups/README.md +++ b/resource-manager/managementgroups/2021-04-01/managementgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2021-04-01/managementgroups" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") payload := managementgroups.CreateManagementGroupRequest{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, managementgroups.Defau ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") if err := client.DeleteThenPoll(ctx, id, managementgroups.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, managementgroups.DefaultDeleteOperation ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.Get(ctx, id, managementgroups.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") // alternatively `client.GetDescendants(ctx, id, managementgroups.DefaultGetDescendantsOperationOptions())` can be used to do batched pagination items, err := client.GetDescendantsComplete(ctx, id, managementgroups.DefaultGetDescendantsOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") payload := managementgroups.CreateOrUpdateSettingsRequest{ // ... @@ -107,7 +108,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.HierarchySettingsDelete(ctx, id) if err != nil { @@ -123,7 +124,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.HierarchySettingsGet(ctx, id) if err != nil { @@ -139,7 +140,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.HierarchySettingsList(ctx, id) if err != nil { @@ -155,7 +156,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") payload := managementgroups.CreateOrUpdateSettingsRequest{ // ... @@ -241,7 +242,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") // alternatively `client.UbscriptionsGetSubscriptionsUnderManagementGroup(ctx, id)` can be used to do batched pagination items, err := client.UbscriptionsGetSubscriptionsUnderManagementGroupComplete(ctx, id) @@ -258,7 +259,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") payload := managementgroups.PatchManagementGroupRequest{ // ... diff --git a/resource-manager/managementgroups/2023-04-01/managementgroups/README.md b/resource-manager/managementgroups/2023-04-01/managementgroups/README.md index 7d65f1d7798..331d910d2ba 100644 --- a/resource-manager/managementgroups/2023-04-01/managementgroups/README.md +++ b/resource-manager/managementgroups/2023-04-01/managementgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2023-04-01/managementgroups" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") payload := managementgroups.CreateManagementGroupRequest{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, managementgroups.Defau ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") if err := client.DeleteThenPoll(ctx, id, managementgroups.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, managementgroups.DefaultDeleteOperation ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.Get(ctx, id, managementgroups.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") // alternatively `client.GetDescendants(ctx, id, managementgroups.DefaultGetDescendantsOperationOptions())` can be used to do batched pagination items, err := client.GetDescendantsComplete(ctx, id, managementgroups.DefaultGetDescendantsOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") payload := managementgroups.CreateOrUpdateSettingsRequest{ // ... @@ -107,7 +108,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.HierarchySettingsDelete(ctx, id) if err != nil { @@ -123,7 +124,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.HierarchySettingsGet(ctx, id) if err != nil { @@ -139,7 +140,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.HierarchySettingsList(ctx, id) if err != nil { @@ -155,7 +156,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") payload := managementgroups.CreateOrUpdateSettingsRequest{ // ... @@ -241,7 +242,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") // alternatively `client.UbscriptionsGetSubscriptionsUnderManagementGroup(ctx, id)` can be used to do batched pagination items, err := client.UbscriptionsGetSubscriptionsUnderManagementGroupComplete(ctx, id) @@ -258,7 +259,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managementgroups.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") payload := managementgroups.PatchManagementGroupRequest{ // ... diff --git a/resource-manager/maps/2021-02-01/accounts/README.md b/resource-manager/maps/2021-02-01/accounts/README.md index baf364819f0..5c89e560493 100644 --- a/resource-manager/maps/2021-02-01/accounts/README.md +++ b/resource-manager/maps/2021-02-01/accounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/maps/2021-02-01/accounts" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accounts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := accounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/maps/2021-02-01/operations/README.md b/resource-manager/maps/2021-02-01/operations/README.md index 25a9b405745..4dffac7fbf3 100644 --- a/resource-manager/maps/2021-02-01/operations/README.md +++ b/resource-manager/maps/2021-02-01/operations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/maps/2021-02-01/operations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.MapsListSubscriptionOperations(ctx, id)` can be used to do batched pagination items, err := client.MapsListSubscriptionOperationsComplete(ctx, id) diff --git a/resource-manager/maps/2023-06-01/accounts/README.md b/resource-manager/maps/2023-06-01/accounts/README.md index 742e14f7fed..f2a07cf8ef6 100644 --- a/resource-manager/maps/2023-06-01/accounts/README.md +++ b/resource-manager/maps/2023-06-01/accounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accounts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := accounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/maps/2023-06-01/operations/README.md b/resource-manager/maps/2023-06-01/operations/README.md index b1d4ab87980..4679bfe6bff 100644 --- a/resource-manager/maps/2023-06-01/operations/README.md +++ b/resource-manager/maps/2023-06-01/operations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/operations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.MapsListSubscriptionOperations(ctx, id)` can be used to do batched pagination items, err := client.MapsListSubscriptionOperationsComplete(ctx, id) diff --git a/resource-manager/mariadb/2018-06-01-preview/checknameavailability/README.md b/resource-manager/mariadb/2018-06-01-preview/checknameavailability/README.md index 75ed53052cf..34b80ff8764 100644 --- a/resource-manager/mariadb/2018-06-01-preview/checknameavailability/README.md +++ b/resource-manager/mariadb/2018-06-01-preview/checknameavailability/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01-preview/checknameavailability" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checknameavailability.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checknameavailability.NameAvailabilityRequest{ // ... diff --git a/resource-manager/mariadb/2018-06-01-preview/servers/README.md b/resource-manager/mariadb/2018-06-01-preview/servers/README.md index 9d28a82269d..a1144fcd071 100644 --- a/resource-manager/mariadb/2018-06-01-preview/servers/README.md +++ b/resource-manager/mariadb/2018-06-01-preview/servers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01-preview/servers" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/mariadb/2018-06-01/checknameavailability/README.md b/resource-manager/mariadb/2018-06-01/checknameavailability/README.md index 85f79d9655f..7edbfb01da0 100644 --- a/resource-manager/mariadb/2018-06-01/checknameavailability/README.md +++ b/resource-manager/mariadb/2018-06-01/checknameavailability/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/checknameavailability" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checknameavailability.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checknameavailability.NameAvailabilityRequest{ // ... diff --git a/resource-manager/mariadb/2018-06-01/servers/README.md b/resource-manager/mariadb/2018-06-01/servers/README.md index 69d2b94e329..d5db8b9116b 100644 --- a/resource-manager/mariadb/2018-06-01/servers/README.md +++ b/resource-manager/mariadb/2018-06-01/servers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/marketplaceordering/2015-06-01/agreements/README.md b/resource-manager/marketplaceordering/2015-06-01/agreements/README.md index f15033c9383..8a350ac1654 100644 --- a/resource-manager/marketplaceordering/2015-06-01/agreements/README.md +++ b/resource-manager/marketplaceordering/2015-06-01/agreements/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agreements.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.MarketplaceAgreementsList(ctx, id) if err != nil { diff --git a/resource-manager/marketplaceordering/2021-01-01/agreements/README.md b/resource-manager/marketplaceordering/2021-01-01/agreements/README.md index 5463ecf689e..5ae91a14f9b 100644 --- a/resource-manager/marketplaceordering/2021-01-01/agreements/README.md +++ b/resource-manager/marketplaceordering/2021-01-01/agreements/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2021-01-01/agreements" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agreements.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.MarketplaceAgreementsList(ctx, id) if err != nil { diff --git a/resource-manager/media/2021-11-01/accounts/README.md b/resource-manager/media/2021-11-01/accounts/README.md index 2b73f3b47a5..99a29239330 100644 --- a/resource-manager/media/2021-11-01/accounts/README.md +++ b/resource-manager/media/2021-11-01/accounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/media/2021-11-01/accounts" ``` @@ -94,7 +95,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accounts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.MediaservicesList(ctx, id)` can be used to do batched pagination items, err := client.MediaservicesListComplete(ctx, id) @@ -111,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := accounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.MediaservicesListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.MediaservicesListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/migrate/2020-01-01/hypervjobs/README.md b/resource-manager/migrate/2020-01-01/hypervjobs/README.md index bef79dbd604..4ef373a9742 100644 --- a/resource-manager/migrate/2020-01-01/hypervjobs/README.md +++ b/resource-manager/migrate/2020-01-01/hypervjobs/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/hypervjobs" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hypervjobs.NewHyperVSiteJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hyperVSiteValue", "jobValue") +id := commonids.NewHyperVSiteJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hyperVSiteValue", "jobValue") read, err := client.GetJob(ctx, id) if err != nil { diff --git a/resource-manager/migrate/2020-01-01/hypervmachines/README.md b/resource-manager/migrate/2020-01-01/hypervmachines/README.md index 3caec6e9789..44f613ee7ad 100644 --- a/resource-manager/migrate/2020-01-01/hypervmachines/README.md +++ b/resource-manager/migrate/2020-01-01/hypervmachines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/hypervmachines" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hypervmachines.NewHyperVSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hyperVSiteValue", "machineValue") +id := commonids.NewHyperVSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hyperVSiteValue", "machineValue") read, err := client.GetMachine(ctx, id) if err != nil { diff --git a/resource-manager/migrate/2020-01-01/hypervrunasaccounts/README.md b/resource-manager/migrate/2020-01-01/hypervrunasaccounts/README.md index 2dcf5d3e489..f964bfb4576 100644 --- a/resource-manager/migrate/2020-01-01/hypervrunasaccounts/README.md +++ b/resource-manager/migrate/2020-01-01/hypervrunasaccounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/hypervrunasaccounts" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hypervrunasaccounts.NewHyperVSiteRunAsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hyperVSiteValue", "runAsAccountValue") +id := commonids.NewHyperVSiteRunAsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hyperVSiteValue", "runAsAccountValue") read, err := client.GetRunAsAccount(ctx, id) if err != nil { diff --git a/resource-manager/migrate/2020-01-01/jobs/README.md b/resource-manager/migrate/2020-01-01/jobs/README.md index 14eb4b01a10..fb898607ced 100644 --- a/resource-manager/migrate/2020-01-01/jobs/README.md +++ b/resource-manager/migrate/2020-01-01/jobs/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/jobs" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := jobs.NewVMwareSiteJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "jobValue") +id := commonids.NewVMwareSiteJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "jobValue") read, err := client.GetJob(ctx, id) if err != nil { diff --git a/resource-manager/migrate/2020-01-01/machines/README.md b/resource-manager/migrate/2020-01-01/machines/README.md index a5acf2832f9..afc3b86eaf3 100644 --- a/resource-manager/migrate/2020-01-01/machines/README.md +++ b/resource-manager/migrate/2020-01-01/machines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := machines.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue") +id := commonids.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue") read, err := client.GetMachine(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := machines.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue") +id := commonids.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue") read, err := client.StartMachine(ctx, id) if err != nil { @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := machines.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue") +id := commonids.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue") read, err := client.StopMachine(ctx, id) if err != nil { diff --git a/resource-manager/migrate/2020-01-01/runasaccounts/README.md b/resource-manager/migrate/2020-01-01/runasaccounts/README.md index 215d6f64989..4546b39653e 100644 --- a/resource-manager/migrate/2020-01-01/runasaccounts/README.md +++ b/resource-manager/migrate/2020-01-01/runasaccounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := runasaccounts.NewVMwareSiteRunAsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "runAsAccountValue") +id := commonids.NewVMwareSiteRunAsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "runAsAccountValue") read, err := client.GetRunAsAccount(ctx, id) if err != nil { diff --git a/resource-manager/migrate/2020-07-07/hypervjobs/README.md b/resource-manager/migrate/2020-07-07/hypervjobs/README.md index 82ba43edde3..bfc78a384e5 100644 --- a/resource-manager/migrate/2020-07-07/hypervjobs/README.md +++ b/resource-manager/migrate/2020-07-07/hypervjobs/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-07-07/hypervjobs" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hypervjobs.NewHyperVSiteJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hyperVSiteValue", "jobValue") +id := commonids.NewHyperVSiteJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hyperVSiteValue", "jobValue") read, err := client.GetJob(ctx, id) if err != nil { diff --git a/resource-manager/migrate/2020-07-07/hypervmachines/README.md b/resource-manager/migrate/2020-07-07/hypervmachines/README.md index 2625d02cdac..d8beec0d531 100644 --- a/resource-manager/migrate/2020-07-07/hypervmachines/README.md +++ b/resource-manager/migrate/2020-07-07/hypervmachines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-07-07/hypervmachines" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hypervmachines.NewHyperVSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hyperVSiteValue", "machineValue") +id := commonids.NewHyperVSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hyperVSiteValue", "machineValue") read, err := client.GetMachine(ctx, id) if err != nil { diff --git a/resource-manager/migrate/2020-07-07/hypervrunasaccounts/README.md b/resource-manager/migrate/2020-07-07/hypervrunasaccounts/README.md index 38aa9bf4118..d8dbf1d5a3a 100644 --- a/resource-manager/migrate/2020-07-07/hypervrunasaccounts/README.md +++ b/resource-manager/migrate/2020-07-07/hypervrunasaccounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-07-07/hypervrunasaccounts" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hypervrunasaccounts.NewHyperVSiteRunAsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hyperVSiteValue", "runAsAccountValue") +id := commonids.NewHyperVSiteRunAsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hyperVSiteValue", "runAsAccountValue") read, err := client.GetRunAsAccount(ctx, id) if err != nil { diff --git a/resource-manager/migrate/2020-07-07/jobs/README.md b/resource-manager/migrate/2020-07-07/jobs/README.md index eba9007c8a8..fe38789fa18 100644 --- a/resource-manager/migrate/2020-07-07/jobs/README.md +++ b/resource-manager/migrate/2020-07-07/jobs/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-07-07/jobs" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := jobs.NewVMwareSiteJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "jobValue") +id := commonids.NewVMwareSiteJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "jobValue") read, err := client.GetJob(ctx, id) if err != nil { diff --git a/resource-manager/migrate/2020-07-07/machines/README.md b/resource-manager/migrate/2020-07-07/machines/README.md index 5006b35001f..f4903ed5715 100644 --- a/resource-manager/migrate/2020-07-07/machines/README.md +++ b/resource-manager/migrate/2020-07-07/machines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-07-07/machines" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := machines.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue") +id := commonids.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue") read, err := client.GetMachine(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := machines.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue") +id := commonids.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue") read, err := client.StartMachine(ctx, id) if err != nil { @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := machines.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue") +id := commonids.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue") read, err := client.StopMachine(ctx, id) if err != nil { diff --git a/resource-manager/migrate/2020-07-07/mastersites/README.md b/resource-manager/migrate/2020-07-07/mastersites/README.md index d463f2b9da4..3ed6ecbfa7a 100644 --- a/resource-manager/migrate/2020-07-07/mastersites/README.md +++ b/resource-manager/migrate/2020-07-07/mastersites/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-07-07/mastersites" ``` @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := mastersites.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -73,7 +74,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := mastersites.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/migrate/2020-07-07/migrates/README.md b/resource-manager/migrate/2020-07-07/migrates/README.md index 73d557942b8..070227ee95f 100644 --- a/resource-manager/migrate/2020-07-07/migrates/README.md +++ b/resource-manager/migrate/2020-07-07/migrates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-07-07/migrates" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := migrates.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.HyperVSitesList(ctx, id)` can be used to do batched pagination items, err := client.HyperVSitesListComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := migrates.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.HyperVSitesListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.HyperVSitesListBySubscriptionComplete(ctx, id) @@ -58,7 +59,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := migrates.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VMwareSitesList(ctx, id)` can be used to do batched pagination items, err := client.VMwareSitesListComplete(ctx, id) @@ -75,7 +76,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := migrates.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VMwareSitesListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.VMwareSitesListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/migrate/2020-07-07/runasaccounts/README.md b/resource-manager/migrate/2020-07-07/runasaccounts/README.md index c5836c28f77..b45e8a4ea9f 100644 --- a/resource-manager/migrate/2020-07-07/runasaccounts/README.md +++ b/resource-manager/migrate/2020-07-07/runasaccounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-07-07/runasaccounts" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := runasaccounts.NewVMwareSiteRunAsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "runAsAccountValue") +id := commonids.NewVMwareSiteRunAsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "runAsAccountValue") read, err := client.GetRunAsAccount(ctx, id) if err != nil { diff --git a/resource-manager/mixedreality/2021-01-01/proxy/README.md b/resource-manager/mixedreality/2021-01-01/proxy/README.md index 1d180b4e3a0..d0a569e6b7e 100644 --- a/resource-manager/mixedreality/2021-01-01/proxy/README.md +++ b/resource-manager/mixedreality/2021-01-01/proxy/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/proxy" ``` @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := proxy.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.RemoteRenderingAccountsListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.RemoteRenderingAccountsListBySubscriptionComplete(ctx, id) @@ -62,7 +63,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := proxy.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.SpatialAnchorsAccountsListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.SpatialAnchorsAccountsListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/mixedreality/2021-01-01/resource/README.md b/resource-manager/mixedreality/2021-01-01/resource/README.md index 146aee06f24..86502be1a87 100644 --- a/resource-manager/mixedreality/2021-01-01/resource/README.md +++ b/resource-manager/mixedreality/2021-01-01/resource/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resource.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.RemoteRenderingAccountsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.RemoteRenderingAccountsListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.RemoteRenderingAccountsListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.RemoteRenderingAccountsListBySubscriptionComplete(ctx, id) @@ -185,7 +186,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resource.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.SpatialAnchorsAccountsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.SpatialAnchorsAccountsListByResourceGroupComplete(ctx, id) @@ -202,7 +203,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.SpatialAnchorsAccountsListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.SpatialAnchorsAccountsListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/mobilenetwork/2022-11-01/mobilenetworks/README.md b/resource-manager/mobilenetwork/2022-11-01/mobilenetworks/README.md index 0c0944c50b8..fca22baff93 100644 --- a/resource-manager/mobilenetwork/2022-11-01/mobilenetworks/README.md +++ b/resource-manager/mobilenetwork/2022-11-01/mobilenetworks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetworks" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := mobilenetworks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := mobilenetworks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplanes/README.md b/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplanes/README.md index 216511ad296..fa0398526f4 100644 --- a/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplanes/README.md +++ b/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplanes/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplanes" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := packetcorecontrolplanes.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := packetcorecontrolplanes.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/mobilenetwork/2022-11-01/simgroups/README.md b/resource-manager/mobilenetwork/2022-11-01/simgroups/README.md index 96d6c992687..021468784bc 100644 --- a/resource-manager/mobilenetwork/2022-11-01/simgroups/README.md +++ b/resource-manager/mobilenetwork/2022-11-01/simgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroups" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := simgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := simgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/mobilenetwork/2023-06-01/mobilenetworks/README.md b/resource-manager/mobilenetwork/2023-06-01/mobilenetworks/README.md index fe1794252f0..538a44a5cac 100644 --- a/resource-manager/mobilenetwork/2023-06-01/mobilenetworks/README.md +++ b/resource-manager/mobilenetwork/2023-06-01/mobilenetworks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2023-06-01/mobilenetworks" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := mobilenetworks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := mobilenetworks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplanes/README.md b/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplanes/README.md index 62f4b4af005..a9d8288aef4 100644 --- a/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplanes/README.md +++ b/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplanes/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplanes" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := packetcorecontrolplanes.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := packetcorecontrolplanes.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplaneversion/README.md b/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplaneversion/README.md index cc89564e0b4..eaaeea20d4a 100644 --- a/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplaneversion/README.md +++ b/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplaneversion/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplaneversion" ``` @@ -73,7 +74,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := packetcorecontrolplaneversion.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/mobilenetwork/2023-06-01/simgroups/README.md b/resource-manager/mobilenetwork/2023-06-01/simgroups/README.md index aeec08d91a9..a6e918cfb2d 100644 --- a/resource-manager/mobilenetwork/2023-06-01/simgroups/README.md +++ b/resource-manager/mobilenetwork/2023-06-01/simgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2023-06-01/simgroups" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := simgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := simgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/mobilenetwork/2023-09-01/mobilenetworks/README.md b/resource-manager/mobilenetwork/2023-09-01/mobilenetworks/README.md index f04620b7bed..e4e66b10e0e 100644 --- a/resource-manager/mobilenetwork/2023-09-01/mobilenetworks/README.md +++ b/resource-manager/mobilenetwork/2023-09-01/mobilenetworks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2023-09-01/mobilenetworks" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := mobilenetworks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := mobilenetworks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplanes/README.md b/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplanes/README.md index 0e67026f463..1dc0d18d9a2 100644 --- a/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplanes/README.md +++ b/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplanes/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplanes" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := packetcorecontrolplanes.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := packetcorecontrolplanes.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplaneversion/README.md b/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplaneversion/README.md index d92396f15a0..f0ac4f43da4 100644 --- a/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplaneversion/README.md +++ b/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplaneversion/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplaneversion" ``` @@ -73,7 +74,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := packetcorecontrolplaneversion.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/mobilenetwork/2023-09-01/simgroups/README.md b/resource-manager/mobilenetwork/2023-09-01/simgroups/README.md index b2fb4021ac2..f946f87d8a8 100644 --- a/resource-manager/mobilenetwork/2023-09-01/simgroups/README.md +++ b/resource-manager/mobilenetwork/2023-09-01/simgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2023-09-01/simgroups" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := simgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := simgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/mysql/2017-12-01/checknameavailability/README.md b/resource-manager/mysql/2017-12-01/checknameavailability/README.md index 10f7094d8d5..7222c32e95d 100644 --- a/resource-manager/mysql/2017-12-01/checknameavailability/README.md +++ b/resource-manager/mysql/2017-12-01/checknameavailability/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/checknameavailability" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checknameavailability.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checknameavailability.NameAvailabilityRequest{ // ... diff --git a/resource-manager/mysql/2017-12-01/servers/README.md b/resource-manager/mysql/2017-12-01/servers/README.md index 197f44d17ea..eac56ad5476 100644 --- a/resource-manager/mysql/2017-12-01/servers/README.md +++ b/resource-manager/mysql/2017-12-01/servers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/mysql/2021-05-01/checknameavailability/README.md b/resource-manager/mysql/2021-05-01/checknameavailability/README.md index dd5e294050a..4e94f719a33 100644 --- a/resource-manager/mysql/2021-05-01/checknameavailability/README.md +++ b/resource-manager/mysql/2021-05-01/checknameavailability/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability" ``` @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := checknameavailability.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checknameavailability.NameAvailabilityRequest{ // ... diff --git a/resource-manager/mysql/2021-05-01/servers/README.md b/resource-manager/mysql/2021-05-01/servers/README.md index 68a0a2d8409..252a1b48204 100644 --- a/resource-manager/mysql/2021-05-01/servers/README.md +++ b/resource-manager/mysql/2021-05-01/servers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/mysql/2021-12-01-preview/checknameavailability/README.md b/resource-manager/mysql/2021-12-01-preview/checknameavailability/README.md index afdd9dada58..81dde3ff800 100644 --- a/resource-manager/mysql/2021-12-01-preview/checknameavailability/README.md +++ b/resource-manager/mysql/2021-12-01-preview/checknameavailability/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-12-01-preview/checknameavailability" ``` @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := checknameavailability.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checknameavailability.NameAvailabilityRequest{ // ... diff --git a/resource-manager/mysql/2021-12-01-preview/servers/README.md b/resource-manager/mysql/2021-12-01-preview/servers/README.md index 1ff386ba675..0b961407fc4 100644 --- a/resource-manager/mysql/2021-12-01-preview/servers/README.md +++ b/resource-manager/mysql/2021-12-01-preview/servers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-12-01-preview/servers" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/mysql/2022-01-01/checknameavailability/README.md b/resource-manager/mysql/2022-01-01/checknameavailability/README.md index b509c2abd51..b8dbe3f4fdc 100644 --- a/resource-manager/mysql/2022-01-01/checknameavailability/README.md +++ b/resource-manager/mysql/2022-01-01/checknameavailability/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability" ``` @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := checknameavailability.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checknameavailability.NameAvailabilityRequest{ // ... diff --git a/resource-manager/mysql/2022-01-01/servers/README.md b/resource-manager/mysql/2022-01-01/servers/README.md index 15ec8a110ff..f5fc13ad784 100644 --- a/resource-manager/mysql/2022-01-01/servers/README.md +++ b/resource-manager/mysql/2022-01-01/servers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/netapp/2023-05-01/netappaccounts/README.md b/resource-manager/netapp/2023-05-01/netappaccounts/README.md index d3b4f2ad624..e22e3bf1619 100644 --- a/resource-manager/netapp/2023-05-01/netappaccounts/README.md +++ b/resource-manager/netapp/2023-05-01/netappaccounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := netappaccounts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.AccountsList(ctx, id)` can be used to do batched pagination items, err := client.AccountsListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := netappaccounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.AccountsListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.AccountsListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/netapp/2023-07-01/netappaccounts/README.md b/resource-manager/netapp/2023-07-01/netappaccounts/README.md index 2a90f13f603..54f849684dc 100644 --- a/resource-manager/netapp/2023-07-01/netappaccounts/README.md +++ b/resource-manager/netapp/2023-07-01/netappaccounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-07-01/netappaccounts" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := netappaccounts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.AccountsList(ctx, id)` can be used to do batched pagination items, err := client.AccountsListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := netappaccounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.AccountsListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.AccountsListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/applicationgateways/README.md b/resource-manager/network/2023-04-01/applicationgateways/README.md index de5210eb2a8..75c450f11a0 100644 --- a/resource-manager/network/2023-04-01/applicationgateways/README.md +++ b/resource-manager/network/2023-04-01/applicationgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/applicationgateways" ``` @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -131,7 +132,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -148,7 +149,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableRequestHeaders(ctx, id) if err != nil { @@ -164,7 +165,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableResponseHeaders(ctx, id) if err != nil { @@ -180,7 +181,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableServerVariables(ctx, id) if err != nil { @@ -196,7 +197,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableSslOptions(ctx, id) if err != nil { @@ -212,7 +213,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAvailableSslPredefinedPolicies(ctx, id)` can be used to do batched pagination items, err := client.ListAvailableSslPredefinedPoliciesComplete(ctx, id) @@ -229,7 +230,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableWafRuleSets(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-04-01/applicationsecuritygroups/README.md b/resource-manager/network/2023-04-01/applicationsecuritygroups/README.md index 6632e80fc43..5caad15829d 100644 --- a/resource-manager/network/2023-04-01/applicationsecuritygroups/README.md +++ b/resource-manager/network/2023-04-01/applicationsecuritygroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/applicationsecuritygroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationsecuritygroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationsecuritygroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/azurefirewalls/README.md b/resource-manager/network/2023-04-01/azurefirewalls/README.md index 8b30bed288b..096bf696ab5 100644 --- a/resource-manager/network/2023-04-01/azurefirewalls/README.md +++ b/resource-manager/network/2023-04-01/azurefirewalls/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/azurefirewalls" ``` @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := azurefirewalls.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -98,7 +99,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := azurefirewalls.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/bastionhosts/README.md b/resource-manager/network/2023-04-01/bastionhosts/README.md index 59b20c43deb..4aacd7cf5b0 100644 --- a/resource-manager/network/2023-04-01/bastionhosts/README.md +++ b/resource-manager/network/2023-04-01/bastionhosts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/bastionhosts" ``` @@ -147,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -164,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/bgpservicecommunities/README.md b/resource-manager/network/2023-04-01/bgpservicecommunities/README.md index 992fd3e4e77..c0a746c5d6d 100644 --- a/resource-manager/network/2023-04-01/bgpservicecommunities/README.md +++ b/resource-manager/network/2023-04-01/bgpservicecommunities/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/bgpservicecommunities" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := bgpservicecommunities.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/cloudservicepublicipaddresses/README.md b/resource-manager/network/2023-04-01/cloudservicepublicipaddresses/README.md index 6d860d3c37e..56db111dd54 100644 --- a/resource-manager/network/2023-04-01/cloudservicepublicipaddresses/README.md +++ b/resource-manager/network/2023-04-01/cloudservicepublicipaddresses/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/cloudservicepublicipaddresses" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := cloudservicepublicipaddresses.NewCloudServicesPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") +id := commonids.NewCloudServicesPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") read, err := client.PublicIPAddressesGetCloudServicePublicIPAddress(ctx, id, cloudservicepublicipaddresses.DefaultPublicIPAddressesGetCloudServicePublicIPAddressOperationOptions()) if err != nil { @@ -57,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := cloudservicepublicipaddresses.NewCloudServicesIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewCloudServicesIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue") // alternatively `client.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses(ctx, id)` can be used to do batched pagination items, err := client.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/customipprefixes/README.md b/resource-manager/network/2023-04-01/customipprefixes/README.md index f2dae683d42..7387103a64f 100644 --- a/resource-manager/network/2023-04-01/customipprefixes/README.md +++ b/resource-manager/network/2023-04-01/customipprefixes/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/customipprefixes" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := customipprefixes.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := customipprefixes.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/ddosprotectionplans/README.md b/resource-manager/network/2023-04-01/ddosprotectionplans/README.md index 69c5dadcd8e..a5e8b8109b5 100644 --- a/resource-manager/network/2023-04-01/ddosprotectionplans/README.md +++ b/resource-manager/network/2023-04-01/ddosprotectionplans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/ddosprotectionplans" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ddosprotectionplans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ddosprotectionplans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/dscpconfigurations/README.md b/resource-manager/network/2023-04-01/dscpconfigurations/README.md index 1ac079b2b1b..a63fc6d6c91 100644 --- a/resource-manager/network/2023-04-01/dscpconfigurations/README.md +++ b/resource-manager/network/2023-04-01/dscpconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/dscpconfigurations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dscpconfigurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.DscpConfigurationList(ctx, id)` can be used to do batched pagination items, err := client.DscpConfigurationListComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dscpconfigurations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.DscpConfigurationListAll(ctx, id)` can be used to do batched pagination items, err := client.DscpConfigurationListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/expressroutecircuitconnections/README.md b/resource-manager/network/2023-04-01/expressroutecircuitconnections/README.md index 55ca9642148..c99665f186d 100644 --- a/resource-manager/network/2023-04-01/expressroutecircuitconnections/README.md +++ b/resource-manager/network/2023-04-01/expressroutecircuitconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/expressroutecircuitconnections" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecircuitconnections.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/expressroutecircuitpeerings/README.md b/resource-manager/network/2023-04-01/expressroutecircuitpeerings/README.md index bfe0d6d771b..3d57779fdfa 100644 --- a/resource-manager/network/2023-04-01/expressroutecircuitpeerings/README.md +++ b/resource-manager/network/2023-04-01/expressroutecircuitpeerings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/expressroutecircuitpeerings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") payload := expressroutecircuitpeerings.ExpressRouteCircuitPeering{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-04-01/expressroutecircuits/README.md b/resource-manager/network/2023-04-01/expressroutecircuits/README.md index 59aa739558a..7c6ca9d8ce3 100644 --- a/resource-manager/network/2023-04-01/expressroutecircuits/README.md +++ b/resource-manager/network/2023-04-01/expressroutecircuits/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/expressroutecircuits" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecircuits.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := expressroutecircuits.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/expressroutecircuitstats/README.md b/resource-manager/network/2023-04-01/expressroutecircuitstats/README.md index a700a3b8879..0f785e284d1 100644 --- a/resource-manager/network/2023-04-01/expressroutecircuitstats/README.md +++ b/resource-manager/network/2023-04-01/expressroutecircuitstats/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/expressroutecircuitstats" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecircuitstats.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") read, err := client.ExpressRouteCircuitsGetPeeringStats(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-04-01/expressroutecrossconnections/README.md b/resource-manager/network/2023-04-01/expressroutecrossconnections/README.md index 0de9f6ae990..3095c6baaa3 100644 --- a/resource-manager/network/2023-04-01/expressroutecrossconnections/README.md +++ b/resource-manager/network/2023-04-01/expressroutecrossconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/expressroutecrossconnections" ``` @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecrossconnections.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -74,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := expressroutecrossconnections.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/expressroutegateways/README.md b/resource-manager/network/2023-04-01/expressroutegateways/README.md index 7c8558452e1..efe796ef97a 100644 --- a/resource-manager/network/2023-04-01/expressroutegateways/README.md +++ b/resource-manager/network/2023-04-01/expressroutegateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/expressroutegateways" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutegateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutegateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-04-01/expressrouteports/README.md b/resource-manager/network/2023-04-01/expressrouteports/README.md index 92725a041c3..00476be3432 100644 --- a/resource-manager/network/2023-04-01/expressrouteports/README.md +++ b/resource-manager/network/2023-04-01/expressrouteports/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/expressrouteports" ``` @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressrouteports.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -107,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := expressrouteports.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/expressrouteportslocations/README.md b/resource-manager/network/2023-04-01/expressrouteportslocations/README.md index 924978eda1e..5853ce489a1 100644 --- a/resource-manager/network/2023-04-01/expressrouteportslocations/README.md +++ b/resource-manager/network/2023-04-01/expressrouteportslocations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/expressrouteportslocations" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressrouteportslocations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/expressrouteproviderports/README.md b/resource-manager/network/2023-04-01/expressrouteproviderports/README.md index f9e96feab4b..5a3e4fdc870 100644 --- a/resource-manager/network/2023-04-01/expressrouteproviderports/README.md +++ b/resource-manager/network/2023-04-01/expressrouteproviderports/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/expressrouteproviderports" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressrouteproviderports.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.LocationList(ctx, id, expressrouteproviderports.DefaultLocationListOperationOptions()) if err != nil { diff --git a/resource-manager/network/2023-04-01/expressrouteserviceproviders/README.md b/resource-manager/network/2023-04-01/expressrouteserviceproviders/README.md index 2dd77c10318..4859705f064 100644 --- a/resource-manager/network/2023-04-01/expressrouteserviceproviders/README.md +++ b/resource-manager/network/2023-04-01/expressrouteserviceproviders/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/expressrouteserviceproviders" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressrouteserviceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/firewallpolicies/README.md b/resource-manager/network/2023-04-01/firewallpolicies/README.md index 4ee5cec2fdd..3d8ae11aec8 100644 --- a/resource-manager/network/2023-04-01/firewallpolicies/README.md +++ b/resource-manager/network/2023-04-01/firewallpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/firewallpolicies" ``` @@ -185,7 +186,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -202,7 +203,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := firewallpolicies.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/ipallocations/README.md b/resource-manager/network/2023-04-01/ipallocations/README.md index 9713c04661d..c9fc778ddeb 100644 --- a/resource-manager/network/2023-04-01/ipallocations/README.md +++ b/resource-manager/network/2023-04-01/ipallocations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/ipallocations" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ipallocations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ipallocations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/ipgroups/README.md b/resource-manager/network/2023-04-01/ipgroups/README.md index 66b1be13dfe..44a3410d686 100644 --- a/resource-manager/network/2023-04-01/ipgroups/README.md +++ b/resource-manager/network/2023-04-01/ipgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/ipgroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ipgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ipgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/loadbalancers/README.md b/resource-manager/network/2023-04-01/loadbalancers/README.md index bb0a25a9dab..c71f420a2c6 100644 --- a/resource-manager/network/2023-04-01/loadbalancers/README.md +++ b/resource-manager/network/2023-04-01/loadbalancers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/loadbalancers" ``` @@ -131,7 +132,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -148,7 +149,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/localnetworkgateways/README.md b/resource-manager/network/2023-04-01/localnetworkgateways/README.md index 71a15b61959..e434aaf57ea 100644 --- a/resource-manager/network/2023-04-01/localnetworkgateways/README.md +++ b/resource-manager/network/2023-04-01/localnetworkgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/localnetworkgateways" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localnetworkgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/natgateways/README.md b/resource-manager/network/2023-04-01/natgateways/README.md index 8260f6d692e..cca45c0de58 100644 --- a/resource-manager/network/2023-04-01/natgateways/README.md +++ b/resource-manager/network/2023-04-01/natgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/natgateways" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := natgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := natgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/networkinterfaces/README.md b/resource-manager/network/2023-04-01/networkinterfaces/README.md index b787d3c57f1..797598d75da 100644 --- a/resource-manager/network/2023-04-01/networkinterfaces/README.md +++ b/resource-manager/network/2023-04-01/networkinterfaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/networkinterfaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") payload := networkinterfaces.NetworkInterface{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") read, err := client.Get(ctx, id, networkinterfaces.DefaultGetOperationOptions()) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") if err := client.GetEffectiveRouteTableThenPoll(ctx, id); err != nil { // handle the error @@ -97,7 +98,7 @@ if err := client.GetEffectiveRouteTableThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") read, err := client.GetVirtualMachineScaleSetIPConfiguration(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetIPConfigurationOperationOptions()) if err != nil { @@ -113,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") read, err := client.GetVirtualMachineScaleSetNetworkInterface(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetNetworkInterfaceOperationOptions()) if err != nil { @@ -129,7 +130,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -146,7 +147,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -197,7 +198,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") if err := client.ListEffectiveNetworkSecurityGroupsThenPoll(ctx, id); err != nil { // handle the error @@ -209,7 +210,7 @@ if err := client.ListEffectiveNetworkSecurityGroupsThenPoll(ctx, id); err != nil ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") // alternatively `client.ListVirtualMachineScaleSetIPConfigurations(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions())` can be used to do batched pagination items, err := client.ListVirtualMachineScaleSetIPConfigurationsComplete(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions()) @@ -260,7 +261,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue", "ipConfigurationValue") read, err := client.NetworkInterfaceIPConfigurationsGet(ctx, id) if err != nil { @@ -276,7 +277,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") // alternatively `client.NetworkInterfaceIPConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceIPConfigurationsListComplete(ctx, id) @@ -293,7 +294,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") // alternatively `client.NetworkInterfaceLoadBalancersList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceLoadBalancersListComplete(ctx, id) @@ -326,7 +327,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") // alternatively `client.NetworkInterfaceTapConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceTapConfigurationsListComplete(ctx, id) @@ -343,7 +344,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") payload := networkinterfaces.TagsObject{ // ... diff --git a/resource-manager/network/2023-04-01/networkmanagerconnections/README.md b/resource-manager/network/2023-04-01/networkmanagerconnections/README.md index ad04ee61970..b396343e1e4 100644 --- a/resource-manager/network/2023-04-01/networkmanagerconnections/README.md +++ b/resource-manager/network/2023-04-01/networkmanagerconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/networkmanagerconnections" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagerconnections.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") // alternatively `client.ManagementGroupNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination items, err := client.ManagementGroupNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions()) @@ -147,7 +148,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagerconnections.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.SubscriptionNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination items, err := client.SubscriptionNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions()) diff --git a/resource-manager/network/2023-04-01/networkmanagereffectiveconnectivityconfiguration/README.md b/resource-manager/network/2023-04-01/networkmanagereffectiveconnectivityconfiguration/README.md index b9b17f72734..ecdbfa61263 100644 --- a/resource-manager/network/2023-04-01/networkmanagereffectiveconnectivityconfiguration/README.md +++ b/resource-manager/network/2023-04-01/networkmanagereffectiveconnectivityconfiguration/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/networkmanagereffectiveconnectivityconfiguration" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkmanagereffectiveconnectivityconfiguration.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := networkmanagereffectiveconnectivityconfiguration.QueryRequestOptions{ // ... diff --git a/resource-manager/network/2023-04-01/networkmanagereffectivesecurityadminrules/README.md b/resource-manager/network/2023-04-01/networkmanagereffectivesecurityadminrules/README.md index 124bb7dea8f..a637ac83a7b 100644 --- a/resource-manager/network/2023-04-01/networkmanagereffectivesecurityadminrules/README.md +++ b/resource-manager/network/2023-04-01/networkmanagereffectivesecurityadminrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/networkmanagereffectivesecurityadminrules" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkmanagereffectivesecurityadminrules.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := networkmanagereffectivesecurityadminrules.QueryRequestOptions{ // ... diff --git a/resource-manager/network/2023-04-01/networkmanagers/README.md b/resource-manager/network/2023-04-01/networkmanagers/README.md index 359bd600811..6f1c59a92f8 100644 --- a/resource-manager/network/2023-04-01/networkmanagers/README.md +++ b/resource-manager/network/2023-04-01/networkmanagers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/networkmanagers" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id, networkmanagers.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, networkmanagers.DefaultListOperationOptions()) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkmanagers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/network/2023-04-01/networkprofiles/README.md b/resource-manager/network/2023-04-01/networkprofiles/README.md index 5d669a28c55..4801284a70f 100644 --- a/resource-manager/network/2023-04-01/networkprofiles/README.md +++ b/resource-manager/network/2023-04-01/networkprofiles/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/networkprofiles" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkprofiles.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkprofiles.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/networksecuritygroups/README.md b/resource-manager/network/2023-04-01/networksecuritygroups/README.md index c322418161f..f53354110b7 100644 --- a/resource-manager/network/2023-04-01/networksecuritygroups/README.md +++ b/resource-manager/network/2023-04-01/networksecuritygroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/networksecuritygroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networksecuritygroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networksecuritygroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/networkvirtualappliances/README.md b/resource-manager/network/2023-04-01/networkvirtualappliances/README.md index 168e520f25d..5c3c8b57357 100644 --- a/resource-manager/network/2023-04-01/networkvirtualappliances/README.md +++ b/resource-manager/network/2023-04-01/networkvirtualappliances/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/networkvirtualappliances" ``` @@ -86,7 +87,7 @@ if err := client.InboundSecurityRuleCreateOrUpdateThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := networkvirtualappliances.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkvirtualappliances.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/networkwatchers/README.md b/resource-manager/network/2023-04-01/networkwatchers/README.md index 85055529b43..e8dd075cd0a 100644 --- a/resource-manager/network/2023-04-01/networkwatchers/README.md +++ b/resource-manager/network/2023-04-01/networkwatchers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/networkwatchers" ``` @@ -230,7 +231,7 @@ if err := client.GetVMSecurityRulesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.List(ctx, id) if err != nil { @@ -246,7 +247,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkwatchers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAll(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-04-01/p2svpngateways/README.md b/resource-manager/network/2023-04-01/p2svpngateways/README.md index e5cfb4a3c92..7c13bfca5b1 100644 --- a/resource-manager/network/2023-04-01/p2svpngateways/README.md +++ b/resource-manager/network/2023-04-01/p2svpngateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/p2svpngateways" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.P2SVpnConnectionRequest{ // ... @@ -41,7 +42,7 @@ if err := client.DisconnectP2sVpnConnectionsThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.P2SVpnProfileParameters{ // ... @@ -58,7 +59,7 @@ if err := client.GenerateVpnProfileThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") if err := client.GetP2sVpnConnectionHealthThenPoll(ctx, id); err != nil { // handle the error @@ -70,7 +71,7 @@ if err := client.GetP2sVpnConnectionHealthThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.P2SVpnConnectionHealthRequest{ // ... @@ -87,7 +88,7 @@ if err := client.GetP2sVpnConnectionHealthDetailedThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") if err := client.ResetThenPoll(ctx, id); err != nil { // handle the error @@ -99,7 +100,7 @@ if err := client.ResetThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.TagsObject{ // ... diff --git a/resource-manager/network/2023-04-01/peerexpressroutecircuitconnections/README.md b/resource-manager/network/2023-04-01/peerexpressroutecircuitconnections/README.md index 52013958524..4f122a56d71 100644 --- a/resource-manager/network/2023-04-01/peerexpressroutecircuitconnections/README.md +++ b/resource-manager/network/2023-04-01/peerexpressroutecircuitconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/peerexpressroutecircuitconnections" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := peerexpressroutecircuitconnections.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/privateendpoints/README.md b/resource-manager/network/2023-04-01/privateendpoints/README.md index b39479c8b9a..3ecac2cbff0 100644 --- a/resource-manager/network/2023-04-01/privateendpoints/README.md +++ b/resource-manager/network/2023-04-01/privateendpoints/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/privateendpoints" ``` @@ -103,7 +104,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpoints.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -120,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privateendpoints.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/privatelinkservices/README.md b/resource-manager/network/2023-04-01/privatelinkservices/README.md index 2036ec546c1..3da12eda98e 100644 --- a/resource-manager/network/2023-04-01/privatelinkservices/README.md +++ b/resource-manager/network/2023-04-01/privatelinkservices/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/privatelinkservices" ``` @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkservices.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -165,7 +166,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkservices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/publicipaddresses/README.md b/resource-manager/network/2023-04-01/publicipaddresses/README.md index 65690dd9af4..ed1f6fc1b12 100644 --- a/resource-manager/network/2023-04-01/publicipaddresses/README.md +++ b/resource-manager/network/2023-04-01/publicipaddresses/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/publicipaddresses" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") payload := publicipaddresses.PublicIPAddress{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") if err := client.DdosProtectionStatusThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DdosProtectionStatusThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") read, err := client.Get(ctx, id, publicipaddresses.DefaultGetOperationOptions()) if err != nil { @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -98,7 +99,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := publicipaddresses.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -115,7 +116,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") payload := publicipaddresses.TagsObject{ // ... diff --git a/resource-manager/network/2023-04-01/publicipprefixes/README.md b/resource-manager/network/2023-04-01/publicipprefixes/README.md index 06540729e2b..4787bfc592c 100644 --- a/resource-manager/network/2023-04-01/publicipprefixes/README.md +++ b/resource-manager/network/2023-04-01/publicipprefixes/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/publicipprefixes" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := publicipprefixes.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := publicipprefixes.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/routefilters/README.md b/resource-manager/network/2023-04-01/routefilters/README.md index 0bccf879ea8..7c4b9c01eea 100644 --- a/resource-manager/network/2023-04-01/routefilters/README.md +++ b/resource-manager/network/2023-04-01/routefilters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/routefilters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := routefilters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := routefilters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/routetables/README.md b/resource-manager/network/2023-04-01/routetables/README.md index 8929afd151c..9bb45f1a376 100644 --- a/resource-manager/network/2023-04-01/routetables/README.md +++ b/resource-manager/network/2023-04-01/routetables/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/routetables" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := routetables.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := routetables.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/securitypartnerproviders/README.md b/resource-manager/network/2023-04-01/securitypartnerproviders/README.md index 05bd4b39bef..35efbde3187 100644 --- a/resource-manager/network/2023-04-01/securitypartnerproviders/README.md +++ b/resource-manager/network/2023-04-01/securitypartnerproviders/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/securitypartnerproviders" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := securitypartnerproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := securitypartnerproviders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/serviceendpointpolicies/README.md b/resource-manager/network/2023-04-01/serviceendpointpolicies/README.md index d6a98659bbe..a1129e7b83e 100644 --- a/resource-manager/network/2023-04-01/serviceendpointpolicies/README.md +++ b/resource-manager/network/2023-04-01/serviceendpointpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/serviceendpointpolicies" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serviceendpointpolicies.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := serviceendpointpolicies.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/subnets/README.md b/resource-manager/network/2023-04-01/subnets/README.md index 8a0d374a150..39840ae3f20 100644 --- a/resource-manager/network/2023-04-01/subnets/README.md +++ b/resource-manager/network/2023-04-01/subnets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/subnets" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := subnets.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") payload := subnets.Subnet{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := subnets.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := subnets.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") read, err := client.Get(ctx, id, subnets.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subnets.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/virtualapplianceskus/README.md b/resource-manager/network/2023-04-01/virtualapplianceskus/README.md index b4c41b508c3..b244faf266a 100644 --- a/resource-manager/network/2023-04-01/virtualapplianceskus/README.md +++ b/resource-manager/network/2023-04-01/virtualapplianceskus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/virtualapplianceskus" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualapplianceskus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/virtualnetworkgatewayconnections/README.md b/resource-manager/network/2023-04-01/virtualnetworkgatewayconnections/README.md index fb09c767baf..d6902c188d6 100644 --- a/resource-manager/network/2023-04-01/virtualnetworkgatewayconnections/README.md +++ b/resource-manager/network/2023-04-01/virtualnetworkgatewayconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/virtualnetworkgatewayconnections" ``` @@ -97,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworkgatewayconnections.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/virtualnetworkgateways/README.md b/resource-manager/network/2023-04-01/virtualnetworkgateways/README.md index 28df6abe833..3cfe2459b76 100644 --- a/resource-manager/network/2023-04-01/virtualnetworkgateways/README.md +++ b/resource-manager/network/2023-04-01/virtualnetworkgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/virtualnetworkgateways" ``` @@ -192,7 +193,7 @@ if err := client.GetVpnclientIPsecParametersThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/virtualnetworkpeerings/README.md b/resource-manager/network/2023-04-01/virtualnetworkpeerings/README.md index cf167e0d3e7..0882a334105 100644 --- a/resource-manager/network/2023-04-01/virtualnetworkpeerings/README.md +++ b/resource-manager/network/2023-04-01/virtualnetworkpeerings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/virtualnetworkpeerings" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworkpeerings.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/virtualnetworks/README.md b/resource-manager/network/2023-04-01/virtualnetworks/README.md index 14ed909ac85..b905f820d4d 100644 --- a/resource-manager/network/2023-04-01/virtualnetworks/README.md +++ b/resource-manager/network/2023-04-01/virtualnetworks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/virtualnetworks" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := virtualnetworks.VirtualNetwork{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") read, err := client.Get(ctx, id, virtualnetworks.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") read, err := client.ResourceNavigationLinksList(ctx, id) if err != nil { @@ -119,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") read, err := client.ServiceAssociationLinksList(ctx, id) if err != nil { @@ -135,7 +136,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") payload := virtualnetworks.PrepareNetworkPoliciesRequest{ // ... @@ -152,7 +153,7 @@ if err := client.SubnetsPrepareNetworkPoliciesThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") payload := virtualnetworks.UnprepareNetworkPoliciesRequest{ // ... @@ -169,7 +170,7 @@ if err := client.SubnetsUnprepareNetworkPoliciesThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := virtualnetworks.TagsObject{ // ... @@ -190,7 +191,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") read, err := client.VirtualNetworksCheckIPAddressAvailability(ctx, id, virtualnetworks.DefaultVirtualNetworksCheckIPAddressAvailabilityOperationOptions()) if err != nil { @@ -206,7 +207,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.VirtualNetworksListDdosProtectionStatus(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions())` can be used to do batched pagination items, err := client.VirtualNetworksListDdosProtectionStatusComplete(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions()) @@ -223,7 +224,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.VirtualNetworksListUsage(ctx, id)` can be used to do batched pagination items, err := client.VirtualNetworksListUsageComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/virtualnetworktaps/README.md b/resource-manager/network/2023-04-01/virtualnetworktaps/README.md index 655072731ac..05d0c7b3758 100644 --- a/resource-manager/network/2023-04-01/virtualnetworktaps/README.md +++ b/resource-manager/network/2023-04-01/virtualnetworktaps/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/virtualnetworktaps" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworktaps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworktaps.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/virtualrouterpeerings/README.md b/resource-manager/network/2023-04-01/virtualrouterpeerings/README.md index 5e676be2ce5..6027b582602 100644 --- a/resource-manager/network/2023-04-01/virtualrouterpeerings/README.md +++ b/resource-manager/network/2023-04-01/virtualrouterpeerings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/virtualrouterpeerings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualrouterpeerings.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") payload := virtualrouterpeerings.VirtualRouterPeering{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualrouterpeerings.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualrouterpeerings.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-04-01/virtualrouters/README.md b/resource-manager/network/2023-04-01/virtualrouters/README.md index 34a4d85195d..8703a462e5b 100644 --- a/resource-manager/network/2023-04-01/virtualrouters/README.md +++ b/resource-manager/network/2023-04-01/virtualrouters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/virtualrouters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualrouters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualrouters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/virtualwans/README.md b/resource-manager/network/2023-04-01/virtualwans/README.md index 6ecdc6b8ab9..f00ad130d88 100644 --- a/resource-manager/network/2023-04-01/virtualwans/README.md +++ b/resource-manager/network/2023-04-01/virtualwans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/virtualwans" ``` @@ -289,7 +290,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := virtualwans.P2SVpnGateway{ // ... @@ -306,7 +307,7 @@ if err := client.P2sVpnGatewaysCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") if err := client.P2sVpnGatewaysDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -318,7 +319,7 @@ if err := client.P2sVpnGatewaysDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") read, err := client.P2sVpnGatewaysGet(ctx, id) if err != nil { @@ -334,7 +335,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.P2sVpnGatewaysList(ctx, id)` can be used to do batched pagination items, err := client.P2sVpnGatewaysListComplete(ctx, id) @@ -351,7 +352,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.P2sVpnGatewaysListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.P2sVpnGatewaysListByResourceGroupComplete(ctx, id) @@ -529,7 +530,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") payload := virtualwans.BgpConnection{ // ... @@ -546,7 +547,7 @@ if err := client.VirtualHubBgpConnectionCreateOrUpdateThenPoll(ctx, id, payload) ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") if err := client.VirtualHubBgpConnectionDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -558,7 +559,7 @@ if err := client.VirtualHubBgpConnectionDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") read, err := client.VirtualHubBgpConnectionGet(ctx, id) if err != nil { @@ -591,7 +592,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") if err := client.VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx, id); err != nil { // handle the error @@ -603,7 +604,7 @@ if err := client.VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx, id); ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") if err := client.VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx, id); err != nil { // handle the error @@ -615,7 +616,7 @@ if err := client.VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx, id); err ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") payload := virtualwans.HubIPConfiguration{ // ... @@ -632,7 +633,7 @@ if err := client.VirtualHubIPConfigurationCreateOrUpdateThenPoll(ctx, id, payloa ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") if err := client.VirtualHubIPConfigurationDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -644,7 +645,7 @@ if err := client.VirtualHubIPConfigurationDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") read, err := client.VirtualHubIPConfigurationGet(ctx, id) if err != nil { @@ -835,7 +836,7 @@ if err := client.VirtualHubsGetOutboundRoutesThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VirtualHubsList(ctx, id)` can be used to do batched pagination items, err := client.VirtualHubsListComplete(ctx, id) @@ -852,7 +853,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VirtualHubsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VirtualHubsListByResourceGroupComplete(ctx, id) @@ -935,7 +936,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VirtualWansList(ctx, id)` can be used to do batched pagination items, err := client.VirtualWansListComplete(ctx, id) @@ -952,7 +953,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VirtualWansListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VirtualWansListByResourceGroupComplete(ctx, id) @@ -969,7 +970,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") payload := virtualwans.VpnConnection{ // ... @@ -986,7 +987,7 @@ if err := client.VpnConnectionsCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") if err := client.VpnConnectionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -998,7 +999,7 @@ if err := client.VpnConnectionsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") read, err := client.VpnConnectionsGet(ctx, id) if err != nil { @@ -1031,7 +1032,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") payload := virtualwans.VpnConnectionPacketCaptureStartParameters{ // ... @@ -1048,7 +1049,7 @@ if err := client.VpnConnectionsStartPacketCaptureThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") payload := virtualwans.VpnConnectionPacketCaptureStopParameters{ // ... @@ -1110,7 +1111,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VpnGatewaysList(ctx, id)` can be used to do batched pagination items, err := client.VpnGatewaysListComplete(ctx, id) @@ -1127,7 +1128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VpnGatewaysListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VpnGatewaysListByResourceGroupComplete(ctx, id) @@ -1156,7 +1157,7 @@ if err := client.VpnLinkConnectionsGetIkeSasThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") // alternatively `client.VpnLinkConnectionsListByVpnConnection(ctx, id)` can be used to do batched pagination items, err := client.VpnLinkConnectionsListByVpnConnectionComplete(ctx, id) @@ -1230,7 +1231,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VpnServerConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.VpnServerConfigurationsListComplete(ctx, id) @@ -1247,7 +1248,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VpnServerConfigurationsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VpnServerConfigurationsListByResourceGroupComplete(ctx, id) @@ -1375,7 +1376,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VpnSitesList(ctx, id)` can be used to do batched pagination items, err := client.VpnSitesListComplete(ctx, id) @@ -1392,7 +1393,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VpnSitesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VpnSitesListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/vmsspublicipaddresses/README.md b/resource-manager/network/2023-04-01/vmsspublicipaddresses/README.md index cfb19a350d0..d011d2bc8eb 100644 --- a/resource-manager/network/2023-04-01/vmsspublicipaddresses/README.md +++ b/resource-manager/network/2023-04-01/vmsspublicipaddresses/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/vmsspublicipaddresses" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vmsspublicipaddresses.NewVirtualMachineScaleSetPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") +id := commonids.NewVirtualMachineScaleSetPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") read, err := client.PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddress(ctx, id, vmsspublicipaddresses.DefaultPublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOperationOptions()) if err != nil { @@ -57,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vmsspublicipaddresses.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") // alternatively `client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses(ctx, id)` can be used to do batched pagination items, err := client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/webapplicationfirewallpolicies/README.md b/resource-manager/network/2023-04-01/webapplicationfirewallpolicies/README.md index e34d704caef..cc4318ce2fa 100644 --- a/resource-manager/network/2023-04-01/webapplicationfirewallpolicies/README.md +++ b/resource-manager/network/2023-04-01/webapplicationfirewallpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/webapplicationfirewallpolicies" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-04-01/webcategories/README.md b/resource-manager/network/2023-04-01/webcategories/README.md index 922c49bd235..49a260fa6cb 100644 --- a/resource-manager/network/2023-04-01/webcategories/README.md +++ b/resource-manager/network/2023-04-01/webcategories/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/webcategories" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webcategories.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/applicationgateways/README.md b/resource-manager/network/2023-05-01/applicationgateways/README.md index ef667435ea1..7c3ace5c20d 100644 --- a/resource-manager/network/2023-05-01/applicationgateways/README.md +++ b/resource-manager/network/2023-05-01/applicationgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/applicationgateways" ``` @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -131,7 +132,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -148,7 +149,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableRequestHeaders(ctx, id) if err != nil { @@ -164,7 +165,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableResponseHeaders(ctx, id) if err != nil { @@ -180,7 +181,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableServerVariables(ctx, id) if err != nil { @@ -196,7 +197,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableSslOptions(ctx, id) if err != nil { @@ -212,7 +213,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAvailableSslPredefinedPolicies(ctx, id)` can be used to do batched pagination items, err := client.ListAvailableSslPredefinedPoliciesComplete(ctx, id) @@ -229,7 +230,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableWafRuleSets(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-05-01/applicationsecuritygroups/README.md b/resource-manager/network/2023-05-01/applicationsecuritygroups/README.md index 27839f75c57..3c116773f87 100644 --- a/resource-manager/network/2023-05-01/applicationsecuritygroups/README.md +++ b/resource-manager/network/2023-05-01/applicationsecuritygroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/applicationsecuritygroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationsecuritygroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationsecuritygroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/azurefirewalls/README.md b/resource-manager/network/2023-05-01/azurefirewalls/README.md index 41576909992..c34e932a71e 100644 --- a/resource-manager/network/2023-05-01/azurefirewalls/README.md +++ b/resource-manager/network/2023-05-01/azurefirewalls/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/azurefirewalls" ``` @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := azurefirewalls.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -98,7 +99,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := azurefirewalls.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/bastionhosts/README.md b/resource-manager/network/2023-05-01/bastionhosts/README.md index 42b4f883245..04688597a76 100644 --- a/resource-manager/network/2023-05-01/bastionhosts/README.md +++ b/resource-manager/network/2023-05-01/bastionhosts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/bastionhosts" ``` @@ -147,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -164,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/bgpservicecommunities/README.md b/resource-manager/network/2023-05-01/bgpservicecommunities/README.md index 0906f189a25..182a522d1ac 100644 --- a/resource-manager/network/2023-05-01/bgpservicecommunities/README.md +++ b/resource-manager/network/2023-05-01/bgpservicecommunities/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/bgpservicecommunities" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := bgpservicecommunities.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/cloudservicepublicipaddresses/README.md b/resource-manager/network/2023-05-01/cloudservicepublicipaddresses/README.md index 7910f526997..9a700d0fd9e 100644 --- a/resource-manager/network/2023-05-01/cloudservicepublicipaddresses/README.md +++ b/resource-manager/network/2023-05-01/cloudservicepublicipaddresses/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/cloudservicepublicipaddresses" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := cloudservicepublicipaddresses.NewCloudServicesPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") +id := commonids.NewCloudServicesPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") read, err := client.PublicIPAddressesGetCloudServicePublicIPAddress(ctx, id, cloudservicepublicipaddresses.DefaultPublicIPAddressesGetCloudServicePublicIPAddressOperationOptions()) if err != nil { @@ -57,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := cloudservicepublicipaddresses.NewCloudServicesIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewCloudServicesIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue") // alternatively `client.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses(ctx, id)` can be used to do batched pagination items, err := client.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/customipprefixes/README.md b/resource-manager/network/2023-05-01/customipprefixes/README.md index cc0b4204e05..f0b85c0ffda 100644 --- a/resource-manager/network/2023-05-01/customipprefixes/README.md +++ b/resource-manager/network/2023-05-01/customipprefixes/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/customipprefixes" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := customipprefixes.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := customipprefixes.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/ddosprotectionplans/README.md b/resource-manager/network/2023-05-01/ddosprotectionplans/README.md index 24dab47c088..21a5efbe17f 100644 --- a/resource-manager/network/2023-05-01/ddosprotectionplans/README.md +++ b/resource-manager/network/2023-05-01/ddosprotectionplans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/ddosprotectionplans" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ddosprotectionplans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ddosprotectionplans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/dscpconfigurations/README.md b/resource-manager/network/2023-05-01/dscpconfigurations/README.md index 0001cd0032b..fd70077b123 100644 --- a/resource-manager/network/2023-05-01/dscpconfigurations/README.md +++ b/resource-manager/network/2023-05-01/dscpconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/dscpconfigurations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dscpconfigurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.DscpConfigurationList(ctx, id)` can be used to do batched pagination items, err := client.DscpConfigurationListComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dscpconfigurations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.DscpConfigurationListAll(ctx, id)` can be used to do batched pagination items, err := client.DscpConfigurationListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/expressroutecircuitconnections/README.md b/resource-manager/network/2023-05-01/expressroutecircuitconnections/README.md index 12e529ed21a..5eda7b39569 100644 --- a/resource-manager/network/2023-05-01/expressroutecircuitconnections/README.md +++ b/resource-manager/network/2023-05-01/expressroutecircuitconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/expressroutecircuitconnections" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecircuitconnections.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/expressroutecircuitpeerings/README.md b/resource-manager/network/2023-05-01/expressroutecircuitpeerings/README.md index cbb764bdb5b..e2b352d2823 100644 --- a/resource-manager/network/2023-05-01/expressroutecircuitpeerings/README.md +++ b/resource-manager/network/2023-05-01/expressroutecircuitpeerings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/expressroutecircuitpeerings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") payload := expressroutecircuitpeerings.ExpressRouteCircuitPeering{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-05-01/expressroutecircuits/README.md b/resource-manager/network/2023-05-01/expressroutecircuits/README.md index 9a6a719c04f..bcb3bc9576b 100644 --- a/resource-manager/network/2023-05-01/expressroutecircuits/README.md +++ b/resource-manager/network/2023-05-01/expressroutecircuits/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/expressroutecircuits" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecircuits.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := expressroutecircuits.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/expressroutecircuitstats/README.md b/resource-manager/network/2023-05-01/expressroutecircuitstats/README.md index 5961ec7196a..b1a23bcb0b3 100644 --- a/resource-manager/network/2023-05-01/expressroutecircuitstats/README.md +++ b/resource-manager/network/2023-05-01/expressroutecircuitstats/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/expressroutecircuitstats" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecircuitstats.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") read, err := client.ExpressRouteCircuitsGetPeeringStats(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-05-01/expressroutecrossconnections/README.md b/resource-manager/network/2023-05-01/expressroutecrossconnections/README.md index 066944f5191..42427f585ce 100644 --- a/resource-manager/network/2023-05-01/expressroutecrossconnections/README.md +++ b/resource-manager/network/2023-05-01/expressroutecrossconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/expressroutecrossconnections" ``` @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecrossconnections.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -74,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := expressroutecrossconnections.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/expressroutegateways/README.md b/resource-manager/network/2023-05-01/expressroutegateways/README.md index 4675864ac1c..0069f808963 100644 --- a/resource-manager/network/2023-05-01/expressroutegateways/README.md +++ b/resource-manager/network/2023-05-01/expressroutegateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/expressroutegateways" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutegateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutegateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-05-01/expressrouteports/README.md b/resource-manager/network/2023-05-01/expressrouteports/README.md index c76deb17707..9d2bfa00c5c 100644 --- a/resource-manager/network/2023-05-01/expressrouteports/README.md +++ b/resource-manager/network/2023-05-01/expressrouteports/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/expressrouteports" ``` @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressrouteports.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -107,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := expressrouteports.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/expressrouteportslocations/README.md b/resource-manager/network/2023-05-01/expressrouteportslocations/README.md index 031aa6dfeb6..7303a1f6880 100644 --- a/resource-manager/network/2023-05-01/expressrouteportslocations/README.md +++ b/resource-manager/network/2023-05-01/expressrouteportslocations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/expressrouteportslocations" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressrouteportslocations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/expressrouteproviderports/README.md b/resource-manager/network/2023-05-01/expressrouteproviderports/README.md index 14ebe336d34..882625e030b 100644 --- a/resource-manager/network/2023-05-01/expressrouteproviderports/README.md +++ b/resource-manager/network/2023-05-01/expressrouteproviderports/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/expressrouteproviderports" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressrouteproviderports.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.LocationList(ctx, id, expressrouteproviderports.DefaultLocationListOperationOptions()) if err != nil { diff --git a/resource-manager/network/2023-05-01/expressrouteserviceproviders/README.md b/resource-manager/network/2023-05-01/expressrouteserviceproviders/README.md index b01e12c4c5d..7b0d6aa801b 100644 --- a/resource-manager/network/2023-05-01/expressrouteserviceproviders/README.md +++ b/resource-manager/network/2023-05-01/expressrouteserviceproviders/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/expressrouteserviceproviders" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressrouteserviceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/firewallpolicies/README.md b/resource-manager/network/2023-05-01/firewallpolicies/README.md index 4c8f581bd28..9140ef2ce1b 100644 --- a/resource-manager/network/2023-05-01/firewallpolicies/README.md +++ b/resource-manager/network/2023-05-01/firewallpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/firewallpolicies" ``` @@ -185,7 +186,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -202,7 +203,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := firewallpolicies.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/ipallocations/README.md b/resource-manager/network/2023-05-01/ipallocations/README.md index 52a1ebc874c..1dd93e70501 100644 --- a/resource-manager/network/2023-05-01/ipallocations/README.md +++ b/resource-manager/network/2023-05-01/ipallocations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/ipallocations" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ipallocations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ipallocations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/ipgroups/README.md b/resource-manager/network/2023-05-01/ipgroups/README.md index 484cccc55e4..d97710df801 100644 --- a/resource-manager/network/2023-05-01/ipgroups/README.md +++ b/resource-manager/network/2023-05-01/ipgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/ipgroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ipgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ipgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/loadbalancers/README.md b/resource-manager/network/2023-05-01/loadbalancers/README.md index dbf0893ee2d..a5a751cd2a9 100644 --- a/resource-manager/network/2023-05-01/loadbalancers/README.md +++ b/resource-manager/network/2023-05-01/loadbalancers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/loadbalancers" ``` @@ -131,7 +132,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -148,7 +149,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/localnetworkgateways/README.md b/resource-manager/network/2023-05-01/localnetworkgateways/README.md index 9af04a4f137..c231b4a395f 100644 --- a/resource-manager/network/2023-05-01/localnetworkgateways/README.md +++ b/resource-manager/network/2023-05-01/localnetworkgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/localnetworkgateways" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localnetworkgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/natgateways/README.md b/resource-manager/network/2023-05-01/natgateways/README.md index 05baf5f6bc6..77347324a09 100644 --- a/resource-manager/network/2023-05-01/natgateways/README.md +++ b/resource-manager/network/2023-05-01/natgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/natgateways" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := natgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := natgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/networkinterfaces/README.md b/resource-manager/network/2023-05-01/networkinterfaces/README.md index fc89d85de45..e9c704ef7d7 100644 --- a/resource-manager/network/2023-05-01/networkinterfaces/README.md +++ b/resource-manager/network/2023-05-01/networkinterfaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/networkinterfaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") payload := networkinterfaces.NetworkInterface{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") read, err := client.Get(ctx, id, networkinterfaces.DefaultGetOperationOptions()) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") if err := client.GetEffectiveRouteTableThenPoll(ctx, id); err != nil { // handle the error @@ -97,7 +98,7 @@ if err := client.GetEffectiveRouteTableThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") read, err := client.GetVirtualMachineScaleSetIPConfiguration(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetIPConfigurationOperationOptions()) if err != nil { @@ -113,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") read, err := client.GetVirtualMachineScaleSetNetworkInterface(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetNetworkInterfaceOperationOptions()) if err != nil { @@ -129,7 +130,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -146,7 +147,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -197,7 +198,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") if err := client.ListEffectiveNetworkSecurityGroupsThenPoll(ctx, id); err != nil { // handle the error @@ -209,7 +210,7 @@ if err := client.ListEffectiveNetworkSecurityGroupsThenPoll(ctx, id); err != nil ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") // alternatively `client.ListVirtualMachineScaleSetIPConfigurations(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions())` can be used to do batched pagination items, err := client.ListVirtualMachineScaleSetIPConfigurationsComplete(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions()) @@ -260,7 +261,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue", "ipConfigurationValue") read, err := client.NetworkInterfaceIPConfigurationsGet(ctx, id) if err != nil { @@ -276,7 +277,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") // alternatively `client.NetworkInterfaceIPConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceIPConfigurationsListComplete(ctx, id) @@ -293,7 +294,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") // alternatively `client.NetworkInterfaceLoadBalancersList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceLoadBalancersListComplete(ctx, id) @@ -326,7 +327,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") // alternatively `client.NetworkInterfaceTapConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceTapConfigurationsListComplete(ctx, id) @@ -343,7 +344,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") payload := networkinterfaces.TagsObject{ // ... diff --git a/resource-manager/network/2023-05-01/networkmanagerconnections/README.md b/resource-manager/network/2023-05-01/networkmanagerconnections/README.md index 686a327bcf6..8ebe94f2c25 100644 --- a/resource-manager/network/2023-05-01/networkmanagerconnections/README.md +++ b/resource-manager/network/2023-05-01/networkmanagerconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/networkmanagerconnections" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagerconnections.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") // alternatively `client.ManagementGroupNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination items, err := client.ManagementGroupNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions()) @@ -147,7 +148,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagerconnections.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.SubscriptionNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination items, err := client.SubscriptionNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions()) diff --git a/resource-manager/network/2023-05-01/networkmanagereffectiveconnectivityconfiguration/README.md b/resource-manager/network/2023-05-01/networkmanagereffectiveconnectivityconfiguration/README.md index e903c048748..c93421e6284 100644 --- a/resource-manager/network/2023-05-01/networkmanagereffectiveconnectivityconfiguration/README.md +++ b/resource-manager/network/2023-05-01/networkmanagereffectiveconnectivityconfiguration/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/networkmanagereffectiveconnectivityconfiguration" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkmanagereffectiveconnectivityconfiguration.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := networkmanagereffectiveconnectivityconfiguration.QueryRequestOptions{ // ... diff --git a/resource-manager/network/2023-05-01/networkmanagereffectivesecurityadminrules/README.md b/resource-manager/network/2023-05-01/networkmanagereffectivesecurityadminrules/README.md index 6b49107017e..56487d19230 100644 --- a/resource-manager/network/2023-05-01/networkmanagereffectivesecurityadminrules/README.md +++ b/resource-manager/network/2023-05-01/networkmanagereffectivesecurityadminrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/networkmanagereffectivesecurityadminrules" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkmanagereffectivesecurityadminrules.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := networkmanagereffectivesecurityadminrules.QueryRequestOptions{ // ... diff --git a/resource-manager/network/2023-05-01/networkmanagers/README.md b/resource-manager/network/2023-05-01/networkmanagers/README.md index f5f9ff617d3..84623620e6d 100644 --- a/resource-manager/network/2023-05-01/networkmanagers/README.md +++ b/resource-manager/network/2023-05-01/networkmanagers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/networkmanagers" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id, networkmanagers.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, networkmanagers.DefaultListOperationOptions()) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkmanagers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/network/2023-05-01/networkprofiles/README.md b/resource-manager/network/2023-05-01/networkprofiles/README.md index 2bb08ed8fa1..d932e0c935f 100644 --- a/resource-manager/network/2023-05-01/networkprofiles/README.md +++ b/resource-manager/network/2023-05-01/networkprofiles/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/networkprofiles" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkprofiles.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkprofiles.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/networksecuritygroups/README.md b/resource-manager/network/2023-05-01/networksecuritygroups/README.md index ea9464ec574..4d95ea03af7 100644 --- a/resource-manager/network/2023-05-01/networksecuritygroups/README.md +++ b/resource-manager/network/2023-05-01/networksecuritygroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/networksecuritygroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networksecuritygroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networksecuritygroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/networkvirtualappliances/README.md b/resource-manager/network/2023-05-01/networkvirtualappliances/README.md index 90f50c84f8d..f8cfdfdfd22 100644 --- a/resource-manager/network/2023-05-01/networkvirtualappliances/README.md +++ b/resource-manager/network/2023-05-01/networkvirtualappliances/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/networkvirtualappliances" ``` @@ -86,7 +87,7 @@ if err := client.InboundSecurityRuleCreateOrUpdateThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := networkvirtualappliances.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkvirtualappliances.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/networkwatchers/README.md b/resource-manager/network/2023-05-01/networkwatchers/README.md index e8cb69a8fc9..65ab8c93aa1 100644 --- a/resource-manager/network/2023-05-01/networkwatchers/README.md +++ b/resource-manager/network/2023-05-01/networkwatchers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/networkwatchers" ``` @@ -230,7 +231,7 @@ if err := client.GetVMSecurityRulesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.List(ctx, id) if err != nil { @@ -246,7 +247,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkwatchers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAll(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-05-01/p2svpngateways/README.md b/resource-manager/network/2023-05-01/p2svpngateways/README.md index deff1fbefca..523d9522fba 100644 --- a/resource-manager/network/2023-05-01/p2svpngateways/README.md +++ b/resource-manager/network/2023-05-01/p2svpngateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/p2svpngateways" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.P2SVpnConnectionRequest{ // ... @@ -41,7 +42,7 @@ if err := client.DisconnectP2sVpnConnectionsThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.P2SVpnProfileParameters{ // ... @@ -58,7 +59,7 @@ if err := client.GenerateVpnProfileThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") if err := client.GetP2sVpnConnectionHealthThenPoll(ctx, id); err != nil { // handle the error @@ -70,7 +71,7 @@ if err := client.GetP2sVpnConnectionHealthThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.P2SVpnConnectionHealthRequest{ // ... @@ -87,7 +88,7 @@ if err := client.GetP2sVpnConnectionHealthDetailedThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") if err := client.ResetThenPoll(ctx, id); err != nil { // handle the error @@ -99,7 +100,7 @@ if err := client.ResetThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.TagsObject{ // ... diff --git a/resource-manager/network/2023-05-01/peerexpressroutecircuitconnections/README.md b/resource-manager/network/2023-05-01/peerexpressroutecircuitconnections/README.md index 8ea084b3975..82d29f3f593 100644 --- a/resource-manager/network/2023-05-01/peerexpressroutecircuitconnections/README.md +++ b/resource-manager/network/2023-05-01/peerexpressroutecircuitconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/peerexpressroutecircuitconnections" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := peerexpressroutecircuitconnections.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/privateendpoints/README.md b/resource-manager/network/2023-05-01/privateendpoints/README.md index ec5640af157..db399eef9c5 100644 --- a/resource-manager/network/2023-05-01/privateendpoints/README.md +++ b/resource-manager/network/2023-05-01/privateendpoints/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/privateendpoints" ``` @@ -103,7 +104,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpoints.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -120,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privateendpoints.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/privatelinkservices/README.md b/resource-manager/network/2023-05-01/privatelinkservices/README.md index 9c640a6b3c4..ea350e56d27 100644 --- a/resource-manager/network/2023-05-01/privatelinkservices/README.md +++ b/resource-manager/network/2023-05-01/privatelinkservices/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/privatelinkservices" ``` @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkservices.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -165,7 +166,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkservices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/publicipaddresses/README.md b/resource-manager/network/2023-05-01/publicipaddresses/README.md index b5390d55b10..c995d063b44 100644 --- a/resource-manager/network/2023-05-01/publicipaddresses/README.md +++ b/resource-manager/network/2023-05-01/publicipaddresses/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/publicipaddresses" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") payload := publicipaddresses.PublicIPAddress{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") if err := client.DdosProtectionStatusThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DdosProtectionStatusThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") read, err := client.Get(ctx, id, publicipaddresses.DefaultGetOperationOptions()) if err != nil { @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -98,7 +99,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := publicipaddresses.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -115,7 +116,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") payload := publicipaddresses.TagsObject{ // ... diff --git a/resource-manager/network/2023-05-01/publicipprefixes/README.md b/resource-manager/network/2023-05-01/publicipprefixes/README.md index 7c7df3471d0..866fcafbaad 100644 --- a/resource-manager/network/2023-05-01/publicipprefixes/README.md +++ b/resource-manager/network/2023-05-01/publicipprefixes/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/publicipprefixes" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := publicipprefixes.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := publicipprefixes.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/routefilters/README.md b/resource-manager/network/2023-05-01/routefilters/README.md index c5f0d3c1a04..1136c630d62 100644 --- a/resource-manager/network/2023-05-01/routefilters/README.md +++ b/resource-manager/network/2023-05-01/routefilters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/routefilters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := routefilters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := routefilters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/routetables/README.md b/resource-manager/network/2023-05-01/routetables/README.md index c2f30a347f2..f98f625e379 100644 --- a/resource-manager/network/2023-05-01/routetables/README.md +++ b/resource-manager/network/2023-05-01/routetables/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/routetables" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := routetables.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := routetables.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/securitypartnerproviders/README.md b/resource-manager/network/2023-05-01/securitypartnerproviders/README.md index 966fd3ede71..6eac4e5ca48 100644 --- a/resource-manager/network/2023-05-01/securitypartnerproviders/README.md +++ b/resource-manager/network/2023-05-01/securitypartnerproviders/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/securitypartnerproviders" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := securitypartnerproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := securitypartnerproviders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/serviceendpointpolicies/README.md b/resource-manager/network/2023-05-01/serviceendpointpolicies/README.md index fcba4d974b1..a37e3f76474 100644 --- a/resource-manager/network/2023-05-01/serviceendpointpolicies/README.md +++ b/resource-manager/network/2023-05-01/serviceendpointpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/serviceendpointpolicies" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serviceendpointpolicies.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := serviceendpointpolicies.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/subnets/README.md b/resource-manager/network/2023-05-01/subnets/README.md index 8dc4353fb12..5f0be741ae0 100644 --- a/resource-manager/network/2023-05-01/subnets/README.md +++ b/resource-manager/network/2023-05-01/subnets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/subnets" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := subnets.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") payload := subnets.Subnet{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := subnets.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := subnets.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") read, err := client.Get(ctx, id, subnets.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subnets.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/virtualapplianceskus/README.md b/resource-manager/network/2023-05-01/virtualapplianceskus/README.md index e9e7c18bb12..509dddd23e5 100644 --- a/resource-manager/network/2023-05-01/virtualapplianceskus/README.md +++ b/resource-manager/network/2023-05-01/virtualapplianceskus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/virtualapplianceskus" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualapplianceskus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/virtualnetworkgatewayconnections/README.md b/resource-manager/network/2023-05-01/virtualnetworkgatewayconnections/README.md index 7f936e11951..e11c12ed32d 100644 --- a/resource-manager/network/2023-05-01/virtualnetworkgatewayconnections/README.md +++ b/resource-manager/network/2023-05-01/virtualnetworkgatewayconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/virtualnetworkgatewayconnections" ``` @@ -97,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworkgatewayconnections.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/virtualnetworkgateways/README.md b/resource-manager/network/2023-05-01/virtualnetworkgateways/README.md index 04e3781fcb4..2a5584dff96 100644 --- a/resource-manager/network/2023-05-01/virtualnetworkgateways/README.md +++ b/resource-manager/network/2023-05-01/virtualnetworkgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/virtualnetworkgateways" ``` @@ -192,7 +193,7 @@ if err := client.GetVpnclientIPsecParametersThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/virtualnetworkpeerings/README.md b/resource-manager/network/2023-05-01/virtualnetworkpeerings/README.md index c14bd1d284f..505a12269c7 100644 --- a/resource-manager/network/2023-05-01/virtualnetworkpeerings/README.md +++ b/resource-manager/network/2023-05-01/virtualnetworkpeerings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/virtualnetworkpeerings" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworkpeerings.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/virtualnetworks/README.md b/resource-manager/network/2023-05-01/virtualnetworks/README.md index 14cebcb0ebe..7c19b18ff15 100644 --- a/resource-manager/network/2023-05-01/virtualnetworks/README.md +++ b/resource-manager/network/2023-05-01/virtualnetworks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/virtualnetworks" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := virtualnetworks.VirtualNetwork{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") read, err := client.Get(ctx, id, virtualnetworks.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") read, err := client.ResourceNavigationLinksList(ctx, id) if err != nil { @@ -119,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") read, err := client.ServiceAssociationLinksList(ctx, id) if err != nil { @@ -135,7 +136,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") payload := virtualnetworks.PrepareNetworkPoliciesRequest{ // ... @@ -152,7 +153,7 @@ if err := client.SubnetsPrepareNetworkPoliciesThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") payload := virtualnetworks.UnprepareNetworkPoliciesRequest{ // ... @@ -169,7 +170,7 @@ if err := client.SubnetsUnprepareNetworkPoliciesThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := virtualnetworks.TagsObject{ // ... @@ -190,7 +191,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") read, err := client.VirtualNetworksCheckIPAddressAvailability(ctx, id, virtualnetworks.DefaultVirtualNetworksCheckIPAddressAvailabilityOperationOptions()) if err != nil { @@ -206,7 +207,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.VirtualNetworksListDdosProtectionStatus(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions())` can be used to do batched pagination items, err := client.VirtualNetworksListDdosProtectionStatusComplete(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions()) @@ -223,7 +224,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.VirtualNetworksListUsage(ctx, id)` can be used to do batched pagination items, err := client.VirtualNetworksListUsageComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/virtualnetworktaps/README.md b/resource-manager/network/2023-05-01/virtualnetworktaps/README.md index 4c1c085ea15..1e66c6c1ed5 100644 --- a/resource-manager/network/2023-05-01/virtualnetworktaps/README.md +++ b/resource-manager/network/2023-05-01/virtualnetworktaps/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/virtualnetworktaps" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworktaps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworktaps.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/virtualrouterpeerings/README.md b/resource-manager/network/2023-05-01/virtualrouterpeerings/README.md index 39c4f8d8630..fda9d4affe3 100644 --- a/resource-manager/network/2023-05-01/virtualrouterpeerings/README.md +++ b/resource-manager/network/2023-05-01/virtualrouterpeerings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/virtualrouterpeerings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualrouterpeerings.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") payload := virtualrouterpeerings.VirtualRouterPeering{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualrouterpeerings.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualrouterpeerings.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-05-01/virtualrouters/README.md b/resource-manager/network/2023-05-01/virtualrouters/README.md index 6d88f4547ae..0b7daab568b 100644 --- a/resource-manager/network/2023-05-01/virtualrouters/README.md +++ b/resource-manager/network/2023-05-01/virtualrouters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/virtualrouters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualrouters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualrouters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/virtualwans/README.md b/resource-manager/network/2023-05-01/virtualwans/README.md index 06055497a5d..847afc83f0f 100644 --- a/resource-manager/network/2023-05-01/virtualwans/README.md +++ b/resource-manager/network/2023-05-01/virtualwans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/virtualwans" ``` @@ -289,7 +290,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := virtualwans.P2SVpnGateway{ // ... @@ -306,7 +307,7 @@ if err := client.P2sVpnGatewaysCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") if err := client.P2sVpnGatewaysDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -318,7 +319,7 @@ if err := client.P2sVpnGatewaysDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") read, err := client.P2sVpnGatewaysGet(ctx, id) if err != nil { @@ -334,7 +335,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.P2sVpnGatewaysList(ctx, id)` can be used to do batched pagination items, err := client.P2sVpnGatewaysListComplete(ctx, id) @@ -351,7 +352,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.P2sVpnGatewaysListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.P2sVpnGatewaysListByResourceGroupComplete(ctx, id) @@ -529,7 +530,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") payload := virtualwans.BgpConnection{ // ... @@ -546,7 +547,7 @@ if err := client.VirtualHubBgpConnectionCreateOrUpdateThenPoll(ctx, id, payload) ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") if err := client.VirtualHubBgpConnectionDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -558,7 +559,7 @@ if err := client.VirtualHubBgpConnectionDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") read, err := client.VirtualHubBgpConnectionGet(ctx, id) if err != nil { @@ -591,7 +592,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") if err := client.VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx, id); err != nil { // handle the error @@ -603,7 +604,7 @@ if err := client.VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx, id); ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") if err := client.VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx, id); err != nil { // handle the error @@ -615,7 +616,7 @@ if err := client.VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx, id); err ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") payload := virtualwans.HubIPConfiguration{ // ... @@ -632,7 +633,7 @@ if err := client.VirtualHubIPConfigurationCreateOrUpdateThenPoll(ctx, id, payloa ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") if err := client.VirtualHubIPConfigurationDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -644,7 +645,7 @@ if err := client.VirtualHubIPConfigurationDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") read, err := client.VirtualHubIPConfigurationGet(ctx, id) if err != nil { @@ -835,7 +836,7 @@ if err := client.VirtualHubsGetOutboundRoutesThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VirtualHubsList(ctx, id)` can be used to do batched pagination items, err := client.VirtualHubsListComplete(ctx, id) @@ -852,7 +853,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VirtualHubsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VirtualHubsListByResourceGroupComplete(ctx, id) @@ -935,7 +936,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VirtualWansList(ctx, id)` can be used to do batched pagination items, err := client.VirtualWansListComplete(ctx, id) @@ -952,7 +953,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VirtualWansListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VirtualWansListByResourceGroupComplete(ctx, id) @@ -969,7 +970,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") payload := virtualwans.VpnConnection{ // ... @@ -986,7 +987,7 @@ if err := client.VpnConnectionsCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") if err := client.VpnConnectionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -998,7 +999,7 @@ if err := client.VpnConnectionsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") read, err := client.VpnConnectionsGet(ctx, id) if err != nil { @@ -1031,7 +1032,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") payload := virtualwans.VpnConnectionPacketCaptureStartParameters{ // ... @@ -1048,7 +1049,7 @@ if err := client.VpnConnectionsStartPacketCaptureThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") payload := virtualwans.VpnConnectionPacketCaptureStopParameters{ // ... @@ -1110,7 +1111,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VpnGatewaysList(ctx, id)` can be used to do batched pagination items, err := client.VpnGatewaysListComplete(ctx, id) @@ -1127,7 +1128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VpnGatewaysListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VpnGatewaysListByResourceGroupComplete(ctx, id) @@ -1156,7 +1157,7 @@ if err := client.VpnLinkConnectionsGetIkeSasThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") // alternatively `client.VpnLinkConnectionsListByVpnConnection(ctx, id)` can be used to do batched pagination items, err := client.VpnLinkConnectionsListByVpnConnectionComplete(ctx, id) @@ -1230,7 +1231,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VpnServerConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.VpnServerConfigurationsListComplete(ctx, id) @@ -1247,7 +1248,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VpnServerConfigurationsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VpnServerConfigurationsListByResourceGroupComplete(ctx, id) @@ -1375,7 +1376,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VpnSitesList(ctx, id)` can be used to do batched pagination items, err := client.VpnSitesListComplete(ctx, id) @@ -1392,7 +1393,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VpnSitesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VpnSitesListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/vmsspublicipaddresses/README.md b/resource-manager/network/2023-05-01/vmsspublicipaddresses/README.md index ecac7252972..e37ff50f385 100644 --- a/resource-manager/network/2023-05-01/vmsspublicipaddresses/README.md +++ b/resource-manager/network/2023-05-01/vmsspublicipaddresses/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/vmsspublicipaddresses" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vmsspublicipaddresses.NewVirtualMachineScaleSetPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") +id := commonids.NewVirtualMachineScaleSetPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") read, err := client.PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddress(ctx, id, vmsspublicipaddresses.DefaultPublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOperationOptions()) if err != nil { @@ -57,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vmsspublicipaddresses.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") // alternatively `client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses(ctx, id)` can be used to do batched pagination items, err := client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/webapplicationfirewallpolicies/README.md b/resource-manager/network/2023-05-01/webapplicationfirewallpolicies/README.md index 5cff336b43c..ee1aa4dfb31 100644 --- a/resource-manager/network/2023-05-01/webapplicationfirewallpolicies/README.md +++ b/resource-manager/network/2023-05-01/webapplicationfirewallpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/webapplicationfirewallpolicies" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-05-01/webcategories/README.md b/resource-manager/network/2023-05-01/webcategories/README.md index a4158bb94b1..eb055ef3ce2 100644 --- a/resource-manager/network/2023-05-01/webcategories/README.md +++ b/resource-manager/network/2023-05-01/webcategories/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/webcategories" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webcategories.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/applicationgateways/README.md b/resource-manager/network/2023-06-01/applicationgateways/README.md index 92b9dd25450..8e0b5f898d3 100644 --- a/resource-manager/network/2023-06-01/applicationgateways/README.md +++ b/resource-manager/network/2023-06-01/applicationgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/applicationgateways" ``` @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -131,7 +132,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -148,7 +149,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableRequestHeaders(ctx, id) if err != nil { @@ -164,7 +165,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableResponseHeaders(ctx, id) if err != nil { @@ -180,7 +181,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableServerVariables(ctx, id) if err != nil { @@ -196,7 +197,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableSslOptions(ctx, id) if err != nil { @@ -212,7 +213,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAvailableSslPredefinedPolicies(ctx, id)` can be used to do batched pagination items, err := client.ListAvailableSslPredefinedPoliciesComplete(ctx, id) @@ -229,7 +230,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableWafRuleSets(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-06-01/applicationsecuritygroups/README.md b/resource-manager/network/2023-06-01/applicationsecuritygroups/README.md index b22f0355e79..73a2237ef34 100644 --- a/resource-manager/network/2023-06-01/applicationsecuritygroups/README.md +++ b/resource-manager/network/2023-06-01/applicationsecuritygroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/applicationsecuritygroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationsecuritygroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationsecuritygroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/azurefirewalls/README.md b/resource-manager/network/2023-06-01/azurefirewalls/README.md index 00d28649733..c57ceb2d913 100644 --- a/resource-manager/network/2023-06-01/azurefirewalls/README.md +++ b/resource-manager/network/2023-06-01/azurefirewalls/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/azurefirewalls" ``` @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := azurefirewalls.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -98,7 +99,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := azurefirewalls.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/bastionhosts/README.md b/resource-manager/network/2023-06-01/bastionhosts/README.md index 580583a67d3..ef11f60d2ba 100644 --- a/resource-manager/network/2023-06-01/bastionhosts/README.md +++ b/resource-manager/network/2023-06-01/bastionhosts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts" ``` @@ -164,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -181,7 +182,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/bgpservicecommunities/README.md b/resource-manager/network/2023-06-01/bgpservicecommunities/README.md index 46e8a3f13f0..8d642409290 100644 --- a/resource-manager/network/2023-06-01/bgpservicecommunities/README.md +++ b/resource-manager/network/2023-06-01/bgpservicecommunities/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bgpservicecommunities" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := bgpservicecommunities.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/cloudservicepublicipaddresses/README.md b/resource-manager/network/2023-06-01/cloudservicepublicipaddresses/README.md index e908932c087..5e8cc3ef1c9 100644 --- a/resource-manager/network/2023-06-01/cloudservicepublicipaddresses/README.md +++ b/resource-manager/network/2023-06-01/cloudservicepublicipaddresses/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/cloudservicepublicipaddresses" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := cloudservicepublicipaddresses.NewCloudServicesPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") +id := commonids.NewCloudServicesPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") read, err := client.PublicIPAddressesGetCloudServicePublicIPAddress(ctx, id, cloudservicepublicipaddresses.DefaultPublicIPAddressesGetCloudServicePublicIPAddressOperationOptions()) if err != nil { @@ -57,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := cloudservicepublicipaddresses.NewCloudServicesIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewCloudServicesIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue") // alternatively `client.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses(ctx, id)` can be used to do batched pagination items, err := client.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/customipprefixes/README.md b/resource-manager/network/2023-06-01/customipprefixes/README.md index 864d9e3ddf8..a9482f260e3 100644 --- a/resource-manager/network/2023-06-01/customipprefixes/README.md +++ b/resource-manager/network/2023-06-01/customipprefixes/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/customipprefixes" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := customipprefixes.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := customipprefixes.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/ddosprotectionplans/README.md b/resource-manager/network/2023-06-01/ddosprotectionplans/README.md index 85d3cd52131..0ce80ed3ef5 100644 --- a/resource-manager/network/2023-06-01/ddosprotectionplans/README.md +++ b/resource-manager/network/2023-06-01/ddosprotectionplans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/ddosprotectionplans" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ddosprotectionplans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ddosprotectionplans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/dscpconfigurations/README.md b/resource-manager/network/2023-06-01/dscpconfigurations/README.md index d65ffb8ca90..99f8f6a1399 100644 --- a/resource-manager/network/2023-06-01/dscpconfigurations/README.md +++ b/resource-manager/network/2023-06-01/dscpconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/dscpconfigurations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dscpconfigurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.DscpConfigurationList(ctx, id)` can be used to do batched pagination items, err := client.DscpConfigurationListComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dscpconfigurations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.DscpConfigurationListAll(ctx, id)` can be used to do batched pagination items, err := client.DscpConfigurationListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/expressroutecircuitconnections/README.md b/resource-manager/network/2023-06-01/expressroutecircuitconnections/README.md index c0294e3bcd4..eb0eb9c345f 100644 --- a/resource-manager/network/2023-06-01/expressroutecircuitconnections/README.md +++ b/resource-manager/network/2023-06-01/expressroutecircuitconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitconnections" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecircuitconnections.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/expressroutecircuitpeerings/README.md b/resource-manager/network/2023-06-01/expressroutecircuitpeerings/README.md index b1fe783870b..a8f810304f5 100644 --- a/resource-manager/network/2023-06-01/expressroutecircuitpeerings/README.md +++ b/resource-manager/network/2023-06-01/expressroutecircuitpeerings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitpeerings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") payload := expressroutecircuitpeerings.ExpressRouteCircuitPeering{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-06-01/expressroutecircuits/README.md b/resource-manager/network/2023-06-01/expressroutecircuits/README.md index c3eedc20c53..d1982133a70 100644 --- a/resource-manager/network/2023-06-01/expressroutecircuits/README.md +++ b/resource-manager/network/2023-06-01/expressroutecircuits/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuits" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecircuits.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := expressroutecircuits.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/expressroutecircuitstats/README.md b/resource-manager/network/2023-06-01/expressroutecircuitstats/README.md index 9ec387a3d6a..a4e8103eefc 100644 --- a/resource-manager/network/2023-06-01/expressroutecircuitstats/README.md +++ b/resource-manager/network/2023-06-01/expressroutecircuitstats/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitstats" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecircuitstats.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") read, err := client.ExpressRouteCircuitsGetPeeringStats(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-06-01/expressroutecrossconnections/README.md b/resource-manager/network/2023-06-01/expressroutecrossconnections/README.md index 7c671f7baf8..e597eb115d8 100644 --- a/resource-manager/network/2023-06-01/expressroutecrossconnections/README.md +++ b/resource-manager/network/2023-06-01/expressroutecrossconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnections" ``` @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecrossconnections.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -74,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := expressroutecrossconnections.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/expressroutegateways/README.md b/resource-manager/network/2023-06-01/expressroutegateways/README.md index 1a75f543aaa..ce7f24cb261 100644 --- a/resource-manager/network/2023-06-01/expressroutegateways/README.md +++ b/resource-manager/network/2023-06-01/expressroutegateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutegateways" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutegateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutegateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-06-01/expressrouteports/README.md b/resource-manager/network/2023-06-01/expressrouteports/README.md index 0f0eb9cab74..4a1aec8a8b2 100644 --- a/resource-manager/network/2023-06-01/expressrouteports/README.md +++ b/resource-manager/network/2023-06-01/expressrouteports/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressrouteports" ``` @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressrouteports.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -107,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := expressrouteports.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/expressrouteportslocations/README.md b/resource-manager/network/2023-06-01/expressrouteportslocations/README.md index bfe98473fe4..de2c2f43247 100644 --- a/resource-manager/network/2023-06-01/expressrouteportslocations/README.md +++ b/resource-manager/network/2023-06-01/expressrouteportslocations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressrouteportslocations" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressrouteportslocations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/expressrouteproviderports/README.md b/resource-manager/network/2023-06-01/expressrouteproviderports/README.md index 9f5072f7bfc..de778f9fe5b 100644 --- a/resource-manager/network/2023-06-01/expressrouteproviderports/README.md +++ b/resource-manager/network/2023-06-01/expressrouteproviderports/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressrouteproviderports" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressrouteproviderports.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.LocationList(ctx, id, expressrouteproviderports.DefaultLocationListOperationOptions()) if err != nil { diff --git a/resource-manager/network/2023-06-01/expressrouteserviceproviders/README.md b/resource-manager/network/2023-06-01/expressrouteserviceproviders/README.md index 46f778917c7..26424f84a6e 100644 --- a/resource-manager/network/2023-06-01/expressrouteserviceproviders/README.md +++ b/resource-manager/network/2023-06-01/expressrouteserviceproviders/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressrouteserviceproviders" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressrouteserviceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/firewallpolicies/README.md b/resource-manager/network/2023-06-01/firewallpolicies/README.md index e45866b020c..49d78a9a62b 100644 --- a/resource-manager/network/2023-06-01/firewallpolicies/README.md +++ b/resource-manager/network/2023-06-01/firewallpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/firewallpolicies" ``` @@ -185,7 +186,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -202,7 +203,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := firewallpolicies.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/ipallocations/README.md b/resource-manager/network/2023-06-01/ipallocations/README.md index 10816d02c52..b7d9289361a 100644 --- a/resource-manager/network/2023-06-01/ipallocations/README.md +++ b/resource-manager/network/2023-06-01/ipallocations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/ipallocations" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ipallocations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ipallocations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/ipgroups/README.md b/resource-manager/network/2023-06-01/ipgroups/README.md index 6cc2aaea59a..63abe7be300 100644 --- a/resource-manager/network/2023-06-01/ipgroups/README.md +++ b/resource-manager/network/2023-06-01/ipgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/ipgroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ipgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ipgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/loadbalancers/README.md b/resource-manager/network/2023-06-01/loadbalancers/README.md index 5118d3a1ced..23705a4adc1 100644 --- a/resource-manager/network/2023-06-01/loadbalancers/README.md +++ b/resource-manager/network/2023-06-01/loadbalancers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/loadbalancers" ``` @@ -131,7 +132,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -148,7 +149,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/localnetworkgateways/README.md b/resource-manager/network/2023-06-01/localnetworkgateways/README.md index 8721287be3e..00ade6413c0 100644 --- a/resource-manager/network/2023-06-01/localnetworkgateways/README.md +++ b/resource-manager/network/2023-06-01/localnetworkgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/localnetworkgateways" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localnetworkgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/natgateways/README.md b/resource-manager/network/2023-06-01/natgateways/README.md index 3570a402a55..5263e541e3c 100644 --- a/resource-manager/network/2023-06-01/natgateways/README.md +++ b/resource-manager/network/2023-06-01/natgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/natgateways" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := natgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := natgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/networkinterfaces/README.md b/resource-manager/network/2023-06-01/networkinterfaces/README.md index f61dc68daf4..828cb5f9beb 100644 --- a/resource-manager/network/2023-06-01/networkinterfaces/README.md +++ b/resource-manager/network/2023-06-01/networkinterfaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") payload := networkinterfaces.NetworkInterface{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") read, err := client.Get(ctx, id, networkinterfaces.DefaultGetOperationOptions()) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") if err := client.GetEffectiveRouteTableThenPoll(ctx, id); err != nil { // handle the error @@ -97,7 +98,7 @@ if err := client.GetEffectiveRouteTableThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") read, err := client.GetVirtualMachineScaleSetIPConfiguration(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetIPConfigurationOperationOptions()) if err != nil { @@ -113,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") read, err := client.GetVirtualMachineScaleSetNetworkInterface(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetNetworkInterfaceOperationOptions()) if err != nil { @@ -129,7 +130,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -146,7 +147,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -197,7 +198,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") if err := client.ListEffectiveNetworkSecurityGroupsThenPoll(ctx, id); err != nil { // handle the error @@ -209,7 +210,7 @@ if err := client.ListEffectiveNetworkSecurityGroupsThenPoll(ctx, id); err != nil ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") // alternatively `client.ListVirtualMachineScaleSetIPConfigurations(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions())` can be used to do batched pagination items, err := client.ListVirtualMachineScaleSetIPConfigurationsComplete(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions()) @@ -260,7 +261,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue", "ipConfigurationValue") read, err := client.NetworkInterfaceIPConfigurationsGet(ctx, id) if err != nil { @@ -276,7 +277,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") // alternatively `client.NetworkInterfaceIPConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceIPConfigurationsListComplete(ctx, id) @@ -293,7 +294,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") // alternatively `client.NetworkInterfaceLoadBalancersList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceLoadBalancersListComplete(ctx, id) @@ -326,7 +327,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") // alternatively `client.NetworkInterfaceTapConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceTapConfigurationsListComplete(ctx, id) @@ -343,7 +344,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") payload := networkinterfaces.TagsObject{ // ... diff --git a/resource-manager/network/2023-06-01/networkmanagerconnections/README.md b/resource-manager/network/2023-06-01/networkmanagerconnections/README.md index e77645c0a33..ed945710fb2 100644 --- a/resource-manager/network/2023-06-01/networkmanagerconnections/README.md +++ b/resource-manager/network/2023-06-01/networkmanagerconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkmanagerconnections" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagerconnections.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") // alternatively `client.ManagementGroupNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination items, err := client.ManagementGroupNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions()) @@ -147,7 +148,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagerconnections.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.SubscriptionNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination items, err := client.SubscriptionNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions()) diff --git a/resource-manager/network/2023-06-01/networkmanagereffectiveconnectivityconfiguration/README.md b/resource-manager/network/2023-06-01/networkmanagereffectiveconnectivityconfiguration/README.md index f1a8b428dca..febaa94046c 100644 --- a/resource-manager/network/2023-06-01/networkmanagereffectiveconnectivityconfiguration/README.md +++ b/resource-manager/network/2023-06-01/networkmanagereffectiveconnectivityconfiguration/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkmanagereffectiveconnectivityconfiguration" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkmanagereffectiveconnectivityconfiguration.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := networkmanagereffectiveconnectivityconfiguration.QueryRequestOptions{ // ... diff --git a/resource-manager/network/2023-06-01/networkmanagereffectivesecurityadminrules/README.md b/resource-manager/network/2023-06-01/networkmanagereffectivesecurityadminrules/README.md index 33f489c8cf2..a4691d6627a 100644 --- a/resource-manager/network/2023-06-01/networkmanagereffectivesecurityadminrules/README.md +++ b/resource-manager/network/2023-06-01/networkmanagereffectivesecurityadminrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkmanagereffectivesecurityadminrules" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkmanagereffectivesecurityadminrules.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := networkmanagereffectivesecurityadminrules.QueryRequestOptions{ // ... diff --git a/resource-manager/network/2023-06-01/networkmanagers/README.md b/resource-manager/network/2023-06-01/networkmanagers/README.md index d2eed27aecd..52eb86b3b87 100644 --- a/resource-manager/network/2023-06-01/networkmanagers/README.md +++ b/resource-manager/network/2023-06-01/networkmanagers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkmanagers" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id, networkmanagers.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, networkmanagers.DefaultListOperationOptions()) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkmanagers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/network/2023-06-01/networkprofiles/README.md b/resource-manager/network/2023-06-01/networkprofiles/README.md index dc234870d31..5f38eb7a7cf 100644 --- a/resource-manager/network/2023-06-01/networkprofiles/README.md +++ b/resource-manager/network/2023-06-01/networkprofiles/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkprofiles" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkprofiles.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkprofiles.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/networksecuritygroups/README.md b/resource-manager/network/2023-06-01/networksecuritygroups/README.md index 49486b9a261..cea73c338aa 100644 --- a/resource-manager/network/2023-06-01/networksecuritygroups/README.md +++ b/resource-manager/network/2023-06-01/networksecuritygroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networksecuritygroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networksecuritygroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networksecuritygroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/networkvirtualappliances/README.md b/resource-manager/network/2023-06-01/networkvirtualappliances/README.md index d049b6bc7c0..0a28563a885 100644 --- a/resource-manager/network/2023-06-01/networkvirtualappliances/README.md +++ b/resource-manager/network/2023-06-01/networkvirtualappliances/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkvirtualappliances" ``` @@ -86,7 +87,7 @@ if err := client.InboundSecurityRuleCreateOrUpdateThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := networkvirtualappliances.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkvirtualappliances.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/networkwatchers/README.md b/resource-manager/network/2023-06-01/networkwatchers/README.md index 7dfe370c49c..9d68456e798 100644 --- a/resource-manager/network/2023-06-01/networkwatchers/README.md +++ b/resource-manager/network/2023-06-01/networkwatchers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkwatchers" ``` @@ -230,7 +231,7 @@ if err := client.GetVMSecurityRulesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.List(ctx, id) if err != nil { @@ -246,7 +247,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkwatchers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAll(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-06-01/p2svpngateways/README.md b/resource-manager/network/2023-06-01/p2svpngateways/README.md index 71cc104ad4d..6169d49a28f 100644 --- a/resource-manager/network/2023-06-01/p2svpngateways/README.md +++ b/resource-manager/network/2023-06-01/p2svpngateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/p2svpngateways" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.P2SVpnConnectionRequest{ // ... @@ -41,7 +42,7 @@ if err := client.DisconnectP2sVpnConnectionsThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.P2SVpnProfileParameters{ // ... @@ -58,7 +59,7 @@ if err := client.GenerateVpnProfileThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") if err := client.GetP2sVpnConnectionHealthThenPoll(ctx, id); err != nil { // handle the error @@ -70,7 +71,7 @@ if err := client.GetP2sVpnConnectionHealthThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.P2SVpnConnectionHealthRequest{ // ... @@ -87,7 +88,7 @@ if err := client.GetP2sVpnConnectionHealthDetailedThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") if err := client.ResetThenPoll(ctx, id); err != nil { // handle the error @@ -99,7 +100,7 @@ if err := client.ResetThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.TagsObject{ // ... diff --git a/resource-manager/network/2023-06-01/peerexpressroutecircuitconnections/README.md b/resource-manager/network/2023-06-01/peerexpressroutecircuitconnections/README.md index 067aabf51ec..062a7dd360f 100644 --- a/resource-manager/network/2023-06-01/peerexpressroutecircuitconnections/README.md +++ b/resource-manager/network/2023-06-01/peerexpressroutecircuitconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/peerexpressroutecircuitconnections" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := peerexpressroutecircuitconnections.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/privateendpoints/README.md b/resource-manager/network/2023-06-01/privateendpoints/README.md index a8ababb2507..626ecf923cc 100644 --- a/resource-manager/network/2023-06-01/privateendpoints/README.md +++ b/resource-manager/network/2023-06-01/privateendpoints/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/privateendpoints" ``` @@ -103,7 +104,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpoints.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -120,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privateendpoints.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/privatelinkservices/README.md b/resource-manager/network/2023-06-01/privatelinkservices/README.md index b7c21f6a317..725b9dee62e 100644 --- a/resource-manager/network/2023-06-01/privatelinkservices/README.md +++ b/resource-manager/network/2023-06-01/privatelinkservices/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/privatelinkservices" ``` @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkservices.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -165,7 +166,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkservices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/publicipaddresses/README.md b/resource-manager/network/2023-06-01/publicipaddresses/README.md index a2818bae6ea..1df08c9245b 100644 --- a/resource-manager/network/2023-06-01/publicipaddresses/README.md +++ b/resource-manager/network/2023-06-01/publicipaddresses/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/publicipaddresses" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") payload := publicipaddresses.PublicIPAddress{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") if err := client.DdosProtectionStatusThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DdosProtectionStatusThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") read, err := client.Get(ctx, id, publicipaddresses.DefaultGetOperationOptions()) if err != nil { @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -98,7 +99,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := publicipaddresses.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -115,7 +116,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") payload := publicipaddresses.TagsObject{ // ... diff --git a/resource-manager/network/2023-06-01/publicipprefixes/README.md b/resource-manager/network/2023-06-01/publicipprefixes/README.md index 3548bcdf85a..58dff2e4f1c 100644 --- a/resource-manager/network/2023-06-01/publicipprefixes/README.md +++ b/resource-manager/network/2023-06-01/publicipprefixes/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/publicipprefixes" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := publicipprefixes.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := publicipprefixes.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/routefilters/README.md b/resource-manager/network/2023-06-01/routefilters/README.md index f4006b6fe58..445ef75ace9 100644 --- a/resource-manager/network/2023-06-01/routefilters/README.md +++ b/resource-manager/network/2023-06-01/routefilters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/routefilters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := routefilters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := routefilters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/routetables/README.md b/resource-manager/network/2023-06-01/routetables/README.md index 97021040778..566e9c7d4ef 100644 --- a/resource-manager/network/2023-06-01/routetables/README.md +++ b/resource-manager/network/2023-06-01/routetables/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/routetables" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := routetables.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := routetables.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/securitypartnerproviders/README.md b/resource-manager/network/2023-06-01/securitypartnerproviders/README.md index c093b689fa9..16b9fb360c9 100644 --- a/resource-manager/network/2023-06-01/securitypartnerproviders/README.md +++ b/resource-manager/network/2023-06-01/securitypartnerproviders/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/securitypartnerproviders" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := securitypartnerproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := securitypartnerproviders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/serviceendpointpolicies/README.md b/resource-manager/network/2023-06-01/serviceendpointpolicies/README.md index 4133ac4b47e..c87293a2e72 100644 --- a/resource-manager/network/2023-06-01/serviceendpointpolicies/README.md +++ b/resource-manager/network/2023-06-01/serviceendpointpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/serviceendpointpolicies" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serviceendpointpolicies.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := serviceendpointpolicies.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/subnets/README.md b/resource-manager/network/2023-06-01/subnets/README.md index fa464ee25da..f7170077ab8 100644 --- a/resource-manager/network/2023-06-01/subnets/README.md +++ b/resource-manager/network/2023-06-01/subnets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/subnets" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := subnets.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") payload := subnets.Subnet{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := subnets.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := subnets.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") read, err := client.Get(ctx, id, subnets.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subnets.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/virtualapplianceskus/README.md b/resource-manager/network/2023-06-01/virtualapplianceskus/README.md index 568d62b4fe6..1296c30afc2 100644 --- a/resource-manager/network/2023-06-01/virtualapplianceskus/README.md +++ b/resource-manager/network/2023-06-01/virtualapplianceskus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualapplianceskus" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualapplianceskus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/virtualnetworkgatewayconnections/README.md b/resource-manager/network/2023-06-01/virtualnetworkgatewayconnections/README.md index fe0de93d6f5..33c1eb003c0 100644 --- a/resource-manager/network/2023-06-01/virtualnetworkgatewayconnections/README.md +++ b/resource-manager/network/2023-06-01/virtualnetworkgatewayconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworkgatewayconnections" ``` @@ -97,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworkgatewayconnections.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/virtualnetworkgateways/README.md b/resource-manager/network/2023-06-01/virtualnetworkgateways/README.md index 0d7208596a5..804ea1ce598 100644 --- a/resource-manager/network/2023-06-01/virtualnetworkgateways/README.md +++ b/resource-manager/network/2023-06-01/virtualnetworkgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworkgateways" ``` @@ -192,7 +193,7 @@ if err := client.GetVpnclientIPsecParametersThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/virtualnetworkpeerings/README.md b/resource-manager/network/2023-06-01/virtualnetworkpeerings/README.md index 4f896d4283a..fc60d25caf8 100644 --- a/resource-manager/network/2023-06-01/virtualnetworkpeerings/README.md +++ b/resource-manager/network/2023-06-01/virtualnetworkpeerings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworkpeerings" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworkpeerings.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/virtualnetworks/README.md b/resource-manager/network/2023-06-01/virtualnetworks/README.md index c3aa630095c..25ae9b3c5a4 100644 --- a/resource-manager/network/2023-06-01/virtualnetworks/README.md +++ b/resource-manager/network/2023-06-01/virtualnetworks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworks" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := virtualnetworks.VirtualNetwork{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") read, err := client.Get(ctx, id, virtualnetworks.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") read, err := client.ResourceNavigationLinksList(ctx, id) if err != nil { @@ -119,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") read, err := client.ServiceAssociationLinksList(ctx, id) if err != nil { @@ -135,7 +136,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") payload := virtualnetworks.PrepareNetworkPoliciesRequest{ // ... @@ -152,7 +153,7 @@ if err := client.SubnetsPrepareNetworkPoliciesThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") payload := virtualnetworks.UnprepareNetworkPoliciesRequest{ // ... @@ -169,7 +170,7 @@ if err := client.SubnetsUnprepareNetworkPoliciesThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := virtualnetworks.TagsObject{ // ... @@ -190,7 +191,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") read, err := client.VirtualNetworksCheckIPAddressAvailability(ctx, id, virtualnetworks.DefaultVirtualNetworksCheckIPAddressAvailabilityOperationOptions()) if err != nil { @@ -206,7 +207,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.VirtualNetworksListDdosProtectionStatus(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions())` can be used to do batched pagination items, err := client.VirtualNetworksListDdosProtectionStatusComplete(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions()) @@ -223,7 +224,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.VirtualNetworksListUsage(ctx, id)` can be used to do batched pagination items, err := client.VirtualNetworksListUsageComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/virtualnetworktaps/README.md b/resource-manager/network/2023-06-01/virtualnetworktaps/README.md index 9a13d1d3cd6..74ef8a6b3cf 100644 --- a/resource-manager/network/2023-06-01/virtualnetworktaps/README.md +++ b/resource-manager/network/2023-06-01/virtualnetworktaps/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworktaps" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworktaps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworktaps.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/virtualrouterpeerings/README.md b/resource-manager/network/2023-06-01/virtualrouterpeerings/README.md index 57c1dbd4a57..5545d6f9a92 100644 --- a/resource-manager/network/2023-06-01/virtualrouterpeerings/README.md +++ b/resource-manager/network/2023-06-01/virtualrouterpeerings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualrouterpeerings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualrouterpeerings.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") payload := virtualrouterpeerings.VirtualRouterPeering{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualrouterpeerings.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualrouterpeerings.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-06-01/virtualrouters/README.md b/resource-manager/network/2023-06-01/virtualrouters/README.md index cd47a500ff2..b5bb72d090e 100644 --- a/resource-manager/network/2023-06-01/virtualrouters/README.md +++ b/resource-manager/network/2023-06-01/virtualrouters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualrouters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualrouters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualrouters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/virtualwans/README.md b/resource-manager/network/2023-06-01/virtualwans/README.md index b3972cf49ed..4c1af461ac5 100644 --- a/resource-manager/network/2023-06-01/virtualwans/README.md +++ b/resource-manager/network/2023-06-01/virtualwans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualwans" ``` @@ -351,7 +352,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := virtualwans.P2SVpnGateway{ // ... @@ -368,7 +369,7 @@ if err := client.P2sVpnGatewaysCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") if err := client.P2sVpnGatewaysDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -380,7 +381,7 @@ if err := client.P2sVpnGatewaysDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") read, err := client.P2sVpnGatewaysGet(ctx, id) if err != nil { @@ -396,7 +397,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.P2sVpnGatewaysList(ctx, id)` can be used to do batched pagination items, err := client.P2sVpnGatewaysListComplete(ctx, id) @@ -413,7 +414,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.P2sVpnGatewaysListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.P2sVpnGatewaysListByResourceGroupComplete(ctx, id) @@ -591,7 +592,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") payload := virtualwans.BgpConnection{ // ... @@ -608,7 +609,7 @@ if err := client.VirtualHubBgpConnectionCreateOrUpdateThenPoll(ctx, id, payload) ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") if err := client.VirtualHubBgpConnectionDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -620,7 +621,7 @@ if err := client.VirtualHubBgpConnectionDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") read, err := client.VirtualHubBgpConnectionGet(ctx, id) if err != nil { @@ -653,7 +654,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") if err := client.VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx, id); err != nil { // handle the error @@ -665,7 +666,7 @@ if err := client.VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx, id); ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") if err := client.VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx, id); err != nil { // handle the error @@ -677,7 +678,7 @@ if err := client.VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx, id); err ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") payload := virtualwans.HubIPConfiguration{ // ... @@ -694,7 +695,7 @@ if err := client.VirtualHubIPConfigurationCreateOrUpdateThenPoll(ctx, id, payloa ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") if err := client.VirtualHubIPConfigurationDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -706,7 +707,7 @@ if err := client.VirtualHubIPConfigurationDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") read, err := client.VirtualHubIPConfigurationGet(ctx, id) if err != nil { @@ -897,7 +898,7 @@ if err := client.VirtualHubsGetOutboundRoutesThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VirtualHubsList(ctx, id)` can be used to do batched pagination items, err := client.VirtualHubsListComplete(ctx, id) @@ -914,7 +915,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VirtualHubsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VirtualHubsListByResourceGroupComplete(ctx, id) @@ -997,7 +998,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VirtualWansList(ctx, id)` can be used to do batched pagination items, err := client.VirtualWansListComplete(ctx, id) @@ -1014,7 +1015,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VirtualWansListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VirtualWansListByResourceGroupComplete(ctx, id) @@ -1031,7 +1032,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") payload := virtualwans.VpnConnection{ // ... @@ -1048,7 +1049,7 @@ if err := client.VpnConnectionsCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") if err := client.VpnConnectionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1060,7 +1061,7 @@ if err := client.VpnConnectionsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") read, err := client.VpnConnectionsGet(ctx, id) if err != nil { @@ -1093,7 +1094,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") payload := virtualwans.VpnConnectionPacketCaptureStartParameters{ // ... @@ -1110,7 +1111,7 @@ if err := client.VpnConnectionsStartPacketCaptureThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") payload := virtualwans.VpnConnectionPacketCaptureStopParameters{ // ... @@ -1172,7 +1173,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VpnGatewaysList(ctx, id)` can be used to do batched pagination items, err := client.VpnGatewaysListComplete(ctx, id) @@ -1189,7 +1190,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VpnGatewaysListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VpnGatewaysListByResourceGroupComplete(ctx, id) @@ -1218,7 +1219,7 @@ if err := client.VpnLinkConnectionsGetIkeSasThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") // alternatively `client.VpnLinkConnectionsListByVpnConnection(ctx, id)` can be used to do batched pagination items, err := client.VpnLinkConnectionsListByVpnConnectionComplete(ctx, id) @@ -1292,7 +1293,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VpnServerConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.VpnServerConfigurationsListComplete(ctx, id) @@ -1309,7 +1310,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VpnServerConfigurationsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VpnServerConfigurationsListByResourceGroupComplete(ctx, id) @@ -1437,7 +1438,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VpnSitesList(ctx, id)` can be used to do batched pagination items, err := client.VpnSitesListComplete(ctx, id) @@ -1454,7 +1455,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VpnSitesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VpnSitesListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/vmsspublicipaddresses/README.md b/resource-manager/network/2023-06-01/vmsspublicipaddresses/README.md index 769f0c7a9ee..678804e22b6 100644 --- a/resource-manager/network/2023-06-01/vmsspublicipaddresses/README.md +++ b/resource-manager/network/2023-06-01/vmsspublicipaddresses/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/vmsspublicipaddresses" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vmsspublicipaddresses.NewVirtualMachineScaleSetPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") +id := commonids.NewVirtualMachineScaleSetPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") read, err := client.PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddress(ctx, id, vmsspublicipaddresses.DefaultPublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOperationOptions()) if err != nil { @@ -57,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vmsspublicipaddresses.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") // alternatively `client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses(ctx, id)` can be used to do batched pagination items, err := client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/webapplicationfirewallpolicies/README.md b/resource-manager/network/2023-06-01/webapplicationfirewallpolicies/README.md index cfe1a24ceaa..3a55671191b 100644 --- a/resource-manager/network/2023-06-01/webapplicationfirewallpolicies/README.md +++ b/resource-manager/network/2023-06-01/webapplicationfirewallpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/webapplicationfirewallpolicies" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-06-01/webcategories/README.md b/resource-manager/network/2023-06-01/webcategories/README.md index a6ef23d7e3d..0f74ffd88d8 100644 --- a/resource-manager/network/2023-06-01/webcategories/README.md +++ b/resource-manager/network/2023-06-01/webcategories/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/webcategories" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webcategories.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/applicationgateways/README.md b/resource-manager/network/2023-09-01/applicationgateways/README.md index 2230de7958d..76a7011d769 100644 --- a/resource-manager/network/2023-09-01/applicationgateways/README.md +++ b/resource-manager/network/2023-09-01/applicationgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationgateways" ``` @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -131,7 +132,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -148,7 +149,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableRequestHeaders(ctx, id) if err != nil { @@ -164,7 +165,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableResponseHeaders(ctx, id) if err != nil { @@ -180,7 +181,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableServerVariables(ctx, id) if err != nil { @@ -196,7 +197,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableSslOptions(ctx, id) if err != nil { @@ -212,7 +213,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAvailableSslPredefinedPolicies(ctx, id)` can be used to do batched pagination items, err := client.ListAvailableSslPredefinedPoliciesComplete(ctx, id) @@ -229,7 +230,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAvailableWafRuleSets(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-09-01/applicationsecuritygroups/README.md b/resource-manager/network/2023-09-01/applicationsecuritygroups/README.md index de124471034..522d9ae5aee 100644 --- a/resource-manager/network/2023-09-01/applicationsecuritygroups/README.md +++ b/resource-manager/network/2023-09-01/applicationsecuritygroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationsecuritygroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationsecuritygroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/azurefirewalls/README.md b/resource-manager/network/2023-09-01/azurefirewalls/README.md index 25746854197..4640488d4b5 100644 --- a/resource-manager/network/2023-09-01/azurefirewalls/README.md +++ b/resource-manager/network/2023-09-01/azurefirewalls/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls" ``` @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := azurefirewalls.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -98,7 +99,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := azurefirewalls.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/bastionhosts/README.md b/resource-manager/network/2023-09-01/bastionhosts/README.md index c7086df884f..f54f86b3829 100644 --- a/resource-manager/network/2023-09-01/bastionhosts/README.md +++ b/resource-manager/network/2023-09-01/bastionhosts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/bastionhosts" ``` @@ -164,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -181,7 +182,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/bgpservicecommunities/README.md b/resource-manager/network/2023-09-01/bgpservicecommunities/README.md index 44d2da4c05a..85b459a5e26 100644 --- a/resource-manager/network/2023-09-01/bgpservicecommunities/README.md +++ b/resource-manager/network/2023-09-01/bgpservicecommunities/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/bgpservicecommunities" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := bgpservicecommunities.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/README.md b/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/README.md index 01994b5825f..698928a1faf 100644 --- a/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/README.md +++ b/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/cloudservicepublicipaddresses" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := cloudservicepublicipaddresses.NewCloudServicesPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") +id := commonids.NewCloudServicesPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") read, err := client.PublicIPAddressesGetCloudServicePublicIPAddress(ctx, id, cloudservicepublicipaddresses.DefaultPublicIPAddressesGetCloudServicePublicIPAddressOperationOptions()) if err != nil { @@ -57,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := cloudservicepublicipaddresses.NewCloudServicesIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewCloudServicesIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue") // alternatively `client.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses(ctx, id)` can be used to do batched pagination items, err := client.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/customipprefixes/README.md b/resource-manager/network/2023-09-01/customipprefixes/README.md index 17d93cca796..563f473e56d 100644 --- a/resource-manager/network/2023-09-01/customipprefixes/README.md +++ b/resource-manager/network/2023-09-01/customipprefixes/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/customipprefixes" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := customipprefixes.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := customipprefixes.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/ddosprotectionplans/README.md b/resource-manager/network/2023-09-01/ddosprotectionplans/README.md index 342a11ae1c5..9dac8516ef6 100644 --- a/resource-manager/network/2023-09-01/ddosprotectionplans/README.md +++ b/resource-manager/network/2023-09-01/ddosprotectionplans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ddosprotectionplans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ddosprotectionplans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/dscpconfigurations/README.md b/resource-manager/network/2023-09-01/dscpconfigurations/README.md index 05a317e3692..7fe5eaad636 100644 --- a/resource-manager/network/2023-09-01/dscpconfigurations/README.md +++ b/resource-manager/network/2023-09-01/dscpconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/dscpconfigurations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dscpconfigurations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.DscpConfigurationList(ctx, id)` can be used to do batched pagination items, err := client.DscpConfigurationListComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dscpconfigurations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.DscpConfigurationListAll(ctx, id)` can be used to do batched pagination items, err := client.DscpConfigurationListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/expressroutecircuitconnections/README.md b/resource-manager/network/2023-09-01/expressroutecircuitconnections/README.md index 35045e73a1e..82af22ad433 100644 --- a/resource-manager/network/2023-09-01/expressroutecircuitconnections/README.md +++ b/resource-manager/network/2023-09-01/expressroutecircuitconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/expressroutecircuitconnections" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecircuitconnections.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/expressroutecircuitpeerings/README.md b/resource-manager/network/2023-09-01/expressroutecircuitpeerings/README.md index bf2bb506bc8..84cf7d13ea2 100644 --- a/resource-manager/network/2023-09-01/expressroutecircuitpeerings/README.md +++ b/resource-manager/network/2023-09-01/expressroutecircuitpeerings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/expressroutecircuitpeerings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") payload := expressroutecircuitpeerings.ExpressRouteCircuitPeering{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-09-01/expressroutecircuits/README.md b/resource-manager/network/2023-09-01/expressroutecircuits/README.md index 66a44a9827a..17ec6bf4c74 100644 --- a/resource-manager/network/2023-09-01/expressroutecircuits/README.md +++ b/resource-manager/network/2023-09-01/expressroutecircuits/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/expressroutecircuits" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecircuits.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := expressroutecircuits.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/expressroutecircuitstats/README.md b/resource-manager/network/2023-09-01/expressroutecircuitstats/README.md index 6782d62776f..dbe0302a615 100644 --- a/resource-manager/network/2023-09-01/expressroutecircuitstats/README.md +++ b/resource-manager/network/2023-09-01/expressroutecircuitstats/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/expressroutecircuitstats" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecircuitstats.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") read, err := client.ExpressRouteCircuitsGetPeeringStats(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-09-01/expressroutecrossconnections/README.md b/resource-manager/network/2023-09-01/expressroutecrossconnections/README.md index 90e04c48c35..f413148c121 100644 --- a/resource-manager/network/2023-09-01/expressroutecrossconnections/README.md +++ b/resource-manager/network/2023-09-01/expressroutecrossconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/expressroutecrossconnections" ``` @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecrossconnections.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -74,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := expressroutecrossconnections.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/expressroutegateways/README.md b/resource-manager/network/2023-09-01/expressroutegateways/README.md index 7293cd14a93..cbabe0c9f3a 100644 --- a/resource-manager/network/2023-09-01/expressroutegateways/README.md +++ b/resource-manager/network/2023-09-01/expressroutegateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/expressroutegateways" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutegateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutegateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-09-01/expressrouteports/README.md b/resource-manager/network/2023-09-01/expressrouteports/README.md index 9c0c90e6496..c46f5a4b250 100644 --- a/resource-manager/network/2023-09-01/expressrouteports/README.md +++ b/resource-manager/network/2023-09-01/expressrouteports/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/expressrouteports" ``` @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressrouteports.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -107,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := expressrouteports.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/expressrouteportslocations/README.md b/resource-manager/network/2023-09-01/expressrouteportslocations/README.md index d984fbe9715..a215cc71393 100644 --- a/resource-manager/network/2023-09-01/expressrouteportslocations/README.md +++ b/resource-manager/network/2023-09-01/expressrouteportslocations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/expressrouteportslocations" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressrouteportslocations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/expressrouteproviderports/README.md b/resource-manager/network/2023-09-01/expressrouteproviderports/README.md index 03d000efdc8..30bdd7157cf 100644 --- a/resource-manager/network/2023-09-01/expressrouteproviderports/README.md +++ b/resource-manager/network/2023-09-01/expressrouteproviderports/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/expressrouteproviderports" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressrouteproviderports.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.LocationList(ctx, id, expressrouteproviderports.DefaultLocationListOperationOptions()) if err != nil { diff --git a/resource-manager/network/2023-09-01/expressrouteserviceproviders/README.md b/resource-manager/network/2023-09-01/expressrouteserviceproviders/README.md index a5f709d9e6f..d6d76c51352 100644 --- a/resource-manager/network/2023-09-01/expressrouteserviceproviders/README.md +++ b/resource-manager/network/2023-09-01/expressrouteserviceproviders/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/expressrouteserviceproviders" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressrouteserviceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/firewallpolicies/README.md b/resource-manager/network/2023-09-01/firewallpolicies/README.md index 4556d7c681a..17556f6c196 100644 --- a/resource-manager/network/2023-09-01/firewallpolicies/README.md +++ b/resource-manager/network/2023-09-01/firewallpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies" ``` @@ -185,7 +186,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -202,7 +203,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := firewallpolicies.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/ipallocations/README.md b/resource-manager/network/2023-09-01/ipallocations/README.md index d3260cacc9a..35608da919a 100644 --- a/resource-manager/network/2023-09-01/ipallocations/README.md +++ b/resource-manager/network/2023-09-01/ipallocations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ipallocations" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ipallocations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ipallocations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/ipgroups/README.md b/resource-manager/network/2023-09-01/ipgroups/README.md index 509db856072..8e194217c8e 100644 --- a/resource-manager/network/2023-09-01/ipgroups/README.md +++ b/resource-manager/network/2023-09-01/ipgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ipgroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ipgroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ipgroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/loadbalancers/README.md b/resource-manager/network/2023-09-01/loadbalancers/README.md index 8c84b1987f1..69b0eef136b 100644 --- a/resource-manager/network/2023-09-01/loadbalancers/README.md +++ b/resource-manager/network/2023-09-01/loadbalancers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers" ``` @@ -131,7 +132,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -148,7 +149,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/localnetworkgateways/README.md b/resource-manager/network/2023-09-01/localnetworkgateways/README.md index 6f6c352f119..62be958951c 100644 --- a/resource-manager/network/2023-09-01/localnetworkgateways/README.md +++ b/resource-manager/network/2023-09-01/localnetworkgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/localnetworkgateways" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localnetworkgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/natgateways/README.md b/resource-manager/network/2023-09-01/natgateways/README.md index 001de20f9d9..0b3813518bc 100644 --- a/resource-manager/network/2023-09-01/natgateways/README.md +++ b/resource-manager/network/2023-09-01/natgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := natgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := natgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/networkinterfaces/README.md b/resource-manager/network/2023-09-01/networkinterfaces/README.md index 84cd891145e..33a20f18404 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/README.md +++ b/resource-manager/network/2023-09-01/networkinterfaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") payload := networkinterfaces.NetworkInterface{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") read, err := client.Get(ctx, id, networkinterfaces.DefaultGetOperationOptions()) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") if err := client.GetEffectiveRouteTableThenPoll(ctx, id); err != nil { // handle the error @@ -97,7 +98,7 @@ if err := client.GetEffectiveRouteTableThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") read, err := client.GetVirtualMachineScaleSetIPConfiguration(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetIPConfigurationOperationOptions()) if err != nil { @@ -113,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") read, err := client.GetVirtualMachineScaleSetNetworkInterface(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetNetworkInterfaceOperationOptions()) if err != nil { @@ -129,7 +130,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -146,7 +147,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -197,7 +198,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") if err := client.ListEffectiveNetworkSecurityGroupsThenPoll(ctx, id); err != nil { // handle the error @@ -209,7 +210,7 @@ if err := client.ListEffectiveNetworkSecurityGroupsThenPoll(ctx, id); err != nil ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") // alternatively `client.ListVirtualMachineScaleSetIPConfigurations(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions())` can be used to do batched pagination items, err := client.ListVirtualMachineScaleSetIPConfigurationsComplete(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions()) @@ -260,7 +261,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue", "ipConfigurationValue") read, err := client.NetworkInterfaceIPConfigurationsGet(ctx, id) if err != nil { @@ -276,7 +277,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") // alternatively `client.NetworkInterfaceIPConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceIPConfigurationsListComplete(ctx, id) @@ -293,7 +294,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") // alternatively `client.NetworkInterfaceLoadBalancersList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceLoadBalancersListComplete(ctx, id) @@ -326,7 +327,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") // alternatively `client.NetworkInterfaceTapConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceTapConfigurationsListComplete(ctx, id) @@ -343,7 +344,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") payload := networkinterfaces.TagsObject{ // ... diff --git a/resource-manager/network/2023-09-01/networkmanagerconnections/README.md b/resource-manager/network/2023-09-01/networkmanagerconnections/README.md index 0e1069f8e66..017e05b3480 100644 --- a/resource-manager/network/2023-09-01/networkmanagerconnections/README.md +++ b/resource-manager/network/2023-09-01/networkmanagerconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagerconnections" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagerconnections.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") // alternatively `client.ManagementGroupNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination items, err := client.ManagementGroupNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions()) @@ -147,7 +148,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagerconnections.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.SubscriptionNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination items, err := client.SubscriptionNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions()) diff --git a/resource-manager/network/2023-09-01/networkmanagereffectiveconnectivityconfiguration/README.md b/resource-manager/network/2023-09-01/networkmanagereffectiveconnectivityconfiguration/README.md index fb9b409c341..49f8eae122d 100644 --- a/resource-manager/network/2023-09-01/networkmanagereffectiveconnectivityconfiguration/README.md +++ b/resource-manager/network/2023-09-01/networkmanagereffectiveconnectivityconfiguration/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagereffectiveconnectivityconfiguration" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkmanagereffectiveconnectivityconfiguration.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := networkmanagereffectiveconnectivityconfiguration.QueryRequestOptions{ // ... diff --git a/resource-manager/network/2023-09-01/networkmanagereffectivesecurityadminrules/README.md b/resource-manager/network/2023-09-01/networkmanagereffectivesecurityadminrules/README.md index b619c36ee56..55b3dc9cddd 100644 --- a/resource-manager/network/2023-09-01/networkmanagereffectivesecurityadminrules/README.md +++ b/resource-manager/network/2023-09-01/networkmanagereffectivesecurityadminrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagereffectivesecurityadminrules" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkmanagereffectivesecurityadminrules.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := networkmanagereffectivesecurityadminrules.QueryRequestOptions{ // ... diff --git a/resource-manager/network/2023-09-01/networkmanagers/README.md b/resource-manager/network/2023-09-01/networkmanagers/README.md index ba986656ef2..271635c8107 100644 --- a/resource-manager/network/2023-09-01/networkmanagers/README.md +++ b/resource-manager/network/2023-09-01/networkmanagers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id, networkmanagers.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, networkmanagers.DefaultListOperationOptions()) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkmanagers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/network/2023-09-01/networkprofiles/README.md b/resource-manager/network/2023-09-01/networkprofiles/README.md index 50ee876635c..16f8d5dbdcb 100644 --- a/resource-manager/network/2023-09-01/networkprofiles/README.md +++ b/resource-manager/network/2023-09-01/networkprofiles/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkprofiles" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkprofiles.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkprofiles.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/networksecuritygroups/README.md b/resource-manager/network/2023-09-01/networksecuritygroups/README.md index b8041b65aa1..fdc6623cfeb 100644 --- a/resource-manager/network/2023-09-01/networksecuritygroups/README.md +++ b/resource-manager/network/2023-09-01/networksecuritygroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networksecuritygroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networksecuritygroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/networkvirtualappliances/README.md b/resource-manager/network/2023-09-01/networkvirtualappliances/README.md index 2b9fc3eb479..1fec26cd144 100644 --- a/resource-manager/network/2023-09-01/networkvirtualappliances/README.md +++ b/resource-manager/network/2023-09-01/networkvirtualappliances/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances" ``` @@ -86,7 +87,7 @@ if err := client.InboundSecurityRuleCreateOrUpdateThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := networkvirtualappliances.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkvirtualappliances.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/networkwatchers/README.md b/resource-manager/network/2023-09-01/networkwatchers/README.md index 1a8e9dd85c1..c47ab71512e 100644 --- a/resource-manager/network/2023-09-01/networkwatchers/README.md +++ b/resource-manager/network/2023-09-01/networkwatchers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers" ``` @@ -230,7 +231,7 @@ if err := client.GetVMSecurityRulesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.List(ctx, id) if err != nil { @@ -246,7 +247,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkwatchers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListAll(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-09-01/p2svpngateways/README.md b/resource-manager/network/2023-09-01/p2svpngateways/README.md index b4d049cbc07..66014c887ac 100644 --- a/resource-manager/network/2023-09-01/p2svpngateways/README.md +++ b/resource-manager/network/2023-09-01/p2svpngateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/p2svpngateways" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.P2SVpnConnectionRequest{ // ... @@ -41,7 +42,7 @@ if err := client.DisconnectP2sVpnConnectionsThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.P2SVpnProfileParameters{ // ... @@ -58,7 +59,7 @@ if err := client.GenerateVpnProfileThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") if err := client.GetP2sVpnConnectionHealthThenPoll(ctx, id); err != nil { // handle the error @@ -70,7 +71,7 @@ if err := client.GetP2sVpnConnectionHealthThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.P2SVpnConnectionHealthRequest{ // ... @@ -87,7 +88,7 @@ if err := client.GetP2sVpnConnectionHealthDetailedThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") if err := client.ResetThenPoll(ctx, id); err != nil { // handle the error @@ -99,7 +100,7 @@ if err := client.ResetThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := p2svpngateways.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := p2svpngateways.TagsObject{ // ... diff --git a/resource-manager/network/2023-09-01/peerexpressroutecircuitconnections/README.md b/resource-manager/network/2023-09-01/peerexpressroutecircuitconnections/README.md index f64dd826936..f1c85c61728 100644 --- a/resource-manager/network/2023-09-01/peerexpressroutecircuitconnections/README.md +++ b/resource-manager/network/2023-09-01/peerexpressroutecircuitconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/peerexpressroutecircuitconnections" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := peerexpressroutecircuitconnections.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/privateendpoints/README.md b/resource-manager/network/2023-09-01/privateendpoints/README.md index e452ed9b28e..f5554506c89 100644 --- a/resource-manager/network/2023-09-01/privateendpoints/README.md +++ b/resource-manager/network/2023-09-01/privateendpoints/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints" ``` @@ -103,7 +104,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpoints.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -120,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privateendpoints.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/privatelinkservices/README.md b/resource-manager/network/2023-09-01/privatelinkservices/README.md index 94199a694b5..e83a46a5e8d 100644 --- a/resource-manager/network/2023-09-01/privatelinkservices/README.md +++ b/resource-manager/network/2023-09-01/privatelinkservices/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privatelinkservices" ``` @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkservices.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -165,7 +166,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkservices.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/publicipaddresses/README.md b/resource-manager/network/2023-09-01/publicipaddresses/README.md index a56a22e6ff3..98849120640 100644 --- a/resource-manager/network/2023-09-01/publicipaddresses/README.md +++ b/resource-manager/network/2023-09-01/publicipaddresses/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipaddresses" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") payload := publicipaddresses.PublicIPAddress{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") if err := client.DdosProtectionStatusThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DdosProtectionStatusThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") read, err := client.Get(ctx, id, publicipaddresses.DefaultGetOperationOptions()) if err != nil { @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := publicipaddresses.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -98,7 +99,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := publicipaddresses.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -115,7 +116,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := publicipaddresses.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") payload := publicipaddresses.TagsObject{ // ... diff --git a/resource-manager/network/2023-09-01/publicipprefixes/README.md b/resource-manager/network/2023-09-01/publicipprefixes/README.md index 857311fa23e..e0b2a74fea6 100644 --- a/resource-manager/network/2023-09-01/publicipprefixes/README.md +++ b/resource-manager/network/2023-09-01/publicipprefixes/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := publicipprefixes.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := publicipprefixes.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/routefilters/README.md b/resource-manager/network/2023-09-01/routefilters/README.md index 2c88f051c5e..183b0b0381a 100644 --- a/resource-manager/network/2023-09-01/routefilters/README.md +++ b/resource-manager/network/2023-09-01/routefilters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := routefilters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := routefilters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/routetables/README.md b/resource-manager/network/2023-09-01/routetables/README.md index 235c440f6c6..c7c7dc0b2c5 100644 --- a/resource-manager/network/2023-09-01/routetables/README.md +++ b/resource-manager/network/2023-09-01/routetables/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := routetables.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := routetables.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/securitypartnerproviders/README.md b/resource-manager/network/2023-09-01/securitypartnerproviders/README.md index a1c49f63ba2..d1dfd3708f2 100644 --- a/resource-manager/network/2023-09-01/securitypartnerproviders/README.md +++ b/resource-manager/network/2023-09-01/securitypartnerproviders/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/securitypartnerproviders" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := securitypartnerproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := securitypartnerproviders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/serviceendpointpolicies/README.md b/resource-manager/network/2023-09-01/serviceendpointpolicies/README.md index d795c81e172..b82c041a4fe 100644 --- a/resource-manager/network/2023-09-01/serviceendpointpolicies/README.md +++ b/resource-manager/network/2023-09-01/serviceendpointpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/serviceendpointpolicies" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serviceendpointpolicies.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := serviceendpointpolicies.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/subnets/README.md b/resource-manager/network/2023-09-01/subnets/README.md index 67178a44603..a8bcf49a2e3 100644 --- a/resource-manager/network/2023-09-01/subnets/README.md +++ b/resource-manager/network/2023-09-01/subnets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := subnets.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") payload := subnets.Subnet{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := subnets.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := subnets.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") read, err := client.Get(ctx, id, subnets.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subnets.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/virtualapplianceskus/README.md b/resource-manager/network/2023-09-01/virtualapplianceskus/README.md index 706ddd66a71..b91a6e16229 100644 --- a/resource-manager/network/2023-09-01/virtualapplianceskus/README.md +++ b/resource-manager/network/2023-09-01/virtualapplianceskus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualapplianceskus" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualapplianceskus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/virtualnetworkgatewayconnections/README.md b/resource-manager/network/2023-09-01/virtualnetworkgatewayconnections/README.md index e1401eecb49..922646ff357 100644 --- a/resource-manager/network/2023-09-01/virtualnetworkgatewayconnections/README.md +++ b/resource-manager/network/2023-09-01/virtualnetworkgatewayconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualnetworkgatewayconnections" ``` @@ -97,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworkgatewayconnections.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/virtualnetworkgateways/README.md b/resource-manager/network/2023-09-01/virtualnetworkgateways/README.md index 01b1b8bfe52..3ad9dff5b7c 100644 --- a/resource-manager/network/2023-09-01/virtualnetworkgateways/README.md +++ b/resource-manager/network/2023-09-01/virtualnetworkgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualnetworkgateways" ``` @@ -192,7 +193,7 @@ if err := client.GetVpnclientIPsecParametersThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/virtualnetworkpeerings/README.md b/resource-manager/network/2023-09-01/virtualnetworkpeerings/README.md index d5020eb8dcb..ec063ebb6f9 100644 --- a/resource-manager/network/2023-09-01/virtualnetworkpeerings/README.md +++ b/resource-manager/network/2023-09-01/virtualnetworkpeerings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualnetworkpeerings" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworkpeerings.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/virtualnetworks/README.md b/resource-manager/network/2023-09-01/virtualnetworks/README.md index e3087f96343..971931e5a82 100644 --- a/resource-manager/network/2023-09-01/virtualnetworks/README.md +++ b/resource-manager/network/2023-09-01/virtualnetworks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualnetworks" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := virtualnetworks.VirtualNetwork{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") read, err := client.Get(ctx, id, virtualnetworks.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -103,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") read, err := client.ResourceNavigationLinksList(ctx, id) if err != nil { @@ -119,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") read, err := client.ServiceAssociationLinksList(ctx, id) if err != nil { @@ -135,7 +136,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") payload := virtualnetworks.PrepareNetworkPoliciesRequest{ // ... @@ -152,7 +153,7 @@ if err := client.SubnetsPrepareNetworkPoliciesThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualnetworks.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") payload := virtualnetworks.UnprepareNetworkPoliciesRequest{ // ... @@ -169,7 +170,7 @@ if err := client.SubnetsUnprepareNetworkPoliciesThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") payload := virtualnetworks.TagsObject{ // ... @@ -190,7 +191,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") read, err := client.VirtualNetworksCheckIPAddressAvailability(ctx, id, virtualnetworks.DefaultVirtualNetworksCheckIPAddressAvailabilityOperationOptions()) if err != nil { @@ -206,7 +207,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.VirtualNetworksListDdosProtectionStatus(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions())` can be used to do batched pagination items, err := client.VirtualNetworksListDdosProtectionStatusComplete(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions()) @@ -223,7 +224,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") // alternatively `client.VirtualNetworksListUsage(ctx, id)` can be used to do batched pagination items, err := client.VirtualNetworksListUsageComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/virtualnetworktaps/README.md b/resource-manager/network/2023-09-01/virtualnetworktaps/README.md index 35501167337..095f3f646a6 100644 --- a/resource-manager/network/2023-09-01/virtualnetworktaps/README.md +++ b/resource-manager/network/2023-09-01/virtualnetworktaps/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualnetworktaps" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworktaps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworktaps.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/virtualrouterpeerings/README.md b/resource-manager/network/2023-09-01/virtualrouterpeerings/README.md index ebd960f922e..71dff866390 100644 --- a/resource-manager/network/2023-09-01/virtualrouterpeerings/README.md +++ b/resource-manager/network/2023-09-01/virtualrouterpeerings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualrouterpeerings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualrouterpeerings.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") payload := virtualrouterpeerings.VirtualRouterPeering{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualrouterpeerings.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualrouterpeerings.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/network/2023-09-01/virtualrouters/README.md b/resource-manager/network/2023-09-01/virtualrouters/README.md index f34eead9582..24f1a1f387f 100644 --- a/resource-manager/network/2023-09-01/virtualrouters/README.md +++ b/resource-manager/network/2023-09-01/virtualrouters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualrouters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualrouters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualrouters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/virtualwans/README.md b/resource-manager/network/2023-09-01/virtualwans/README.md index 7b670a4978e..dc1dcb56d73 100644 --- a/resource-manager/network/2023-09-01/virtualwans/README.md +++ b/resource-manager/network/2023-09-01/virtualwans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans" ``` @@ -351,7 +352,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") payload := virtualwans.P2SVpnGateway{ // ... @@ -368,7 +369,7 @@ if err := client.P2sVpnGatewaysCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") if err := client.P2sVpnGatewaysDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -380,7 +381,7 @@ if err := client.P2sVpnGatewaysDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") read, err := client.P2sVpnGatewaysGet(ctx, id) if err != nil { @@ -396,7 +397,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.P2sVpnGatewaysList(ctx, id)` can be used to do batched pagination items, err := client.P2sVpnGatewaysListComplete(ctx, id) @@ -413,7 +414,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.P2sVpnGatewaysListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.P2sVpnGatewaysListByResourceGroupComplete(ctx, id) @@ -591,7 +592,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") payload := virtualwans.BgpConnection{ // ... @@ -608,7 +609,7 @@ if err := client.VirtualHubBgpConnectionCreateOrUpdateThenPoll(ctx, id, payload) ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") if err := client.VirtualHubBgpConnectionDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -620,7 +621,7 @@ if err := client.VirtualHubBgpConnectionDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") read, err := client.VirtualHubBgpConnectionGet(ctx, id) if err != nil { @@ -653,7 +654,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") if err := client.VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx, id); err != nil { // handle the error @@ -665,7 +666,7 @@ if err := client.VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx, id); ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") if err := client.VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx, id); err != nil { // handle the error @@ -677,7 +678,7 @@ if err := client.VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx, id); err ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") payload := virtualwans.HubIPConfiguration{ // ... @@ -694,7 +695,7 @@ if err := client.VirtualHubIPConfigurationCreateOrUpdateThenPoll(ctx, id, payloa ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") if err := client.VirtualHubIPConfigurationDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -706,7 +707,7 @@ if err := client.VirtualHubIPConfigurationDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") read, err := client.VirtualHubIPConfigurationGet(ctx, id) if err != nil { @@ -897,7 +898,7 @@ if err := client.VirtualHubsGetOutboundRoutesThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VirtualHubsList(ctx, id)` can be used to do batched pagination items, err := client.VirtualHubsListComplete(ctx, id) @@ -914,7 +915,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VirtualHubsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VirtualHubsListByResourceGroupComplete(ctx, id) @@ -997,7 +998,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VirtualWansList(ctx, id)` can be used to do batched pagination items, err := client.VirtualWansListComplete(ctx, id) @@ -1014,7 +1015,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VirtualWansListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VirtualWansListByResourceGroupComplete(ctx, id) @@ -1031,7 +1032,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") payload := virtualwans.VpnConnection{ // ... @@ -1048,7 +1049,7 @@ if err := client.VpnConnectionsCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") if err := client.VpnConnectionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1060,7 +1061,7 @@ if err := client.VpnConnectionsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") read, err := client.VpnConnectionsGet(ctx, id) if err != nil { @@ -1093,7 +1094,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") payload := virtualwans.VpnConnectionPacketCaptureStartParameters{ // ... @@ -1110,7 +1111,7 @@ if err := client.VpnConnectionsStartPacketCaptureThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") payload := virtualwans.VpnConnectionPacketCaptureStopParameters{ // ... @@ -1172,7 +1173,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VpnGatewaysList(ctx, id)` can be used to do batched pagination items, err := client.VpnGatewaysListComplete(ctx, id) @@ -1189,7 +1190,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VpnGatewaysListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VpnGatewaysListByResourceGroupComplete(ctx, id) @@ -1218,7 +1219,7 @@ if err := client.VpnLinkConnectionsGetIkeSasThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") // alternatively `client.VpnLinkConnectionsListByVpnConnection(ctx, id)` can be used to do batched pagination items, err := client.VpnLinkConnectionsListByVpnConnectionComplete(ctx, id) @@ -1292,7 +1293,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VpnServerConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.VpnServerConfigurationsListComplete(ctx, id) @@ -1309,7 +1310,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VpnServerConfigurationsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VpnServerConfigurationsListByResourceGroupComplete(ctx, id) @@ -1437,7 +1438,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VpnSitesList(ctx, id)` can be used to do batched pagination items, err := client.VpnSitesListComplete(ctx, id) @@ -1454,7 +1455,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VpnSitesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VpnSitesListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/vmsspublicipaddresses/README.md b/resource-manager/network/2023-09-01/vmsspublicipaddresses/README.md index d4a8fd0332d..7fbbc21ff04 100644 --- a/resource-manager/network/2023-09-01/vmsspublicipaddresses/README.md +++ b/resource-manager/network/2023-09-01/vmsspublicipaddresses/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vmsspublicipaddresses.NewVirtualMachineScaleSetPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") +id := commonids.NewVirtualMachineScaleSetPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") read, err := client.PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddress(ctx, id, vmsspublicipaddresses.DefaultPublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOperationOptions()) if err != nil { @@ -57,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vmsspublicipaddresses.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") // alternatively `client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses(ctx, id)` can be used to do batched pagination items, err := client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/README.md b/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/README.md index 8a973ec2aa8..c029a5159ea 100644 --- a/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/README.md +++ b/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/network/2023-09-01/webcategories/README.md b/resource-manager/network/2023-09-01/webcategories/README.md index a1600fa092d..3bc5d17c497 100644 --- a/resource-manager/network/2023-09-01/webcategories/README.md +++ b/resource-manager/network/2023-09-01/webcategories/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webcategories" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webcategories.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/README.md b/resource-manager/networkcloud/2023-07-01/networkclouds/README.md index 89f69e77b6a..4fb651fab92 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/README.md +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/networkcloud/2023-07-01/networkclouds" ``` @@ -244,7 +245,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkclouds.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.BareMetalMachinesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.BareMetalMachinesListByResourceGroupComplete(ctx, id) @@ -261,7 +262,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkclouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.BareMetalMachinesListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.BareMetalMachinesListBySubscriptionComplete(ctx, id) @@ -552,7 +553,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkclouds.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.CloudServicesNetworksListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.CloudServicesNetworksListByResourceGroupComplete(ctx, id) @@ -569,7 +570,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkclouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.CloudServicesNetworksListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.CloudServicesNetworksListBySubscriptionComplete(ctx, id) @@ -648,7 +649,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkclouds.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ClusterManagersListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ClusterManagersListByResourceGroupComplete(ctx, id) @@ -665,7 +666,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkclouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ClusterManagersListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ClusterManagersListBySubscriptionComplete(ctx, id) @@ -765,7 +766,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkclouds.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ClustersListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ClustersListByResourceGroupComplete(ctx, id) @@ -782,7 +783,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkclouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ClustersListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ClustersListBySubscriptionComplete(ctx, id) @@ -957,7 +958,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkclouds.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.KubernetesClustersListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.KubernetesClustersListByResourceGroupComplete(ctx, id) @@ -974,7 +975,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkclouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.KubernetesClustersListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.KubernetesClustersListBySubscriptionComplete(ctx, id) @@ -1070,7 +1071,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkclouds.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.L2NetworksListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.L2NetworksListByResourceGroupComplete(ctx, id) @@ -1087,7 +1088,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkclouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.L2NetworksListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.L2NetworksListBySubscriptionComplete(ctx, id) @@ -1170,7 +1171,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkclouds.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.L3NetworksListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.L3NetworksListByResourceGroupComplete(ctx, id) @@ -1187,7 +1188,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkclouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.L3NetworksListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.L3NetworksListBySubscriptionComplete(ctx, id) @@ -1320,7 +1321,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkclouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.RackSkusListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.RackSkusListBySubscriptionComplete(ctx, id) @@ -1382,7 +1383,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkclouds.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.RacksListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.RacksListByResourceGroupComplete(ctx, id) @@ -1399,7 +1400,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkclouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.RacksListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.RacksListBySubscriptionComplete(ctx, id) @@ -1507,7 +1508,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkclouds.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.StorageAppliancesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.StorageAppliancesListByResourceGroupComplete(ctx, id) @@ -1524,7 +1525,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkclouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.StorageAppliancesListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.StorageAppliancesListBySubscriptionComplete(ctx, id) @@ -1603,7 +1604,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkclouds.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.TrunkedNetworksListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.TrunkedNetworksListByResourceGroupComplete(ctx, id) @@ -1620,7 +1621,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkclouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.TrunkedNetworksListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.TrunkedNetworksListBySubscriptionComplete(ctx, id) @@ -1703,7 +1704,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkclouds.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VirtualMachinesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VirtualMachinesListByResourceGroupComplete(ctx, id) @@ -1720,7 +1721,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkclouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VirtualMachinesListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.VirtualMachinesListBySubscriptionComplete(ctx, id) @@ -1852,7 +1853,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkclouds.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.VolumesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.VolumesListByResourceGroupComplete(ctx, id) @@ -1869,7 +1870,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkclouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.VolumesListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.VolumesListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/README.md b/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/README.md index 001699a3db1..6c4d5579e23 100644 --- a/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/README.md +++ b/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := azuretrafficcollectors.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ByResourceGroupList(ctx, id)` can be used to do batched pagination items, err := client.ByResourceGroupListComplete(ctx, id) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := azuretrafficcollectors.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.BySubscriptionList(ctx, id)` can be used to do batched pagination items, err := client.BySubscriptionListComplete(ctx, id) diff --git a/resource-manager/newrelic/2022-07-01/accounts/README.md b/resource-manager/newrelic/2022-07-01/accounts/README.md index fc619d7f6c7..a87359b4462 100644 --- a/resource-manager/newrelic/2022-07-01/accounts/README.md +++ b/resource-manager/newrelic/2022-07-01/accounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/accounts" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := accounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, accounts.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, accounts.DefaultListOperationOptions()) diff --git a/resource-manager/newrelic/2022-07-01/monitors/README.md b/resource-manager/newrelic/2022-07-01/monitors/README.md index 19d6629b614..92b02a7a418 100644 --- a/resource-manager/newrelic/2022-07-01/monitors/README.md +++ b/resource-manager/newrelic/2022-07-01/monitors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors" ``` @@ -133,7 +134,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitors.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -150,7 +151,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitors.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/newrelic/2022-07-01/organizations/README.md b/resource-manager/newrelic/2022-07-01/organizations/README.md index 97a257ef1b2..e3ae7832a25 100644 --- a/resource-manager/newrelic/2022-07-01/organizations/README.md +++ b/resource-manager/newrelic/2022-07-01/organizations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/organizations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := organizations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, organizations.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, organizations.DefaultListOperationOptions()) diff --git a/resource-manager/newrelic/2022-07-01/plan/README.md b/resource-manager/newrelic/2022-07-01/plan/README.md index 925eadacd1d..f0b192d83d7 100644 --- a/resource-manager/newrelic/2022-07-01/plan/README.md +++ b/resource-manager/newrelic/2022-07-01/plan/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/plan" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := plan.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, plan.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, plan.DefaultListOperationOptions()) diff --git a/resource-manager/nginx/2023-04-01/nginxdeployment/README.md b/resource-manager/nginx/2023-04-01/nginxdeployment/README.md index 514bcc50030..860332f79bd 100644 --- a/resource-manager/nginx/2023-04-01/nginxdeployment/README.md +++ b/resource-manager/nginx/2023-04-01/nginxdeployment/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := nginxdeployment.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.DeploymentsList(ctx, id)` can be used to do batched pagination items, err := client.DeploymentsListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := nginxdeployment.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.DeploymentsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.DeploymentsListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/nginx/2023-09-01/nginxdeployment/README.md b/resource-manager/nginx/2023-09-01/nginxdeployment/README.md index d0836a0bb9c..4e94fa574de 100644 --- a/resource-manager/nginx/2023-09-01/nginxdeployment/README.md +++ b/resource-manager/nginx/2023-09-01/nginxdeployment/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-09-01/nginxdeployment" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := nginxdeployment.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.DeploymentsList(ctx, id)` can be used to do batched pagination items, err := client.DeploymentsListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := nginxdeployment.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.DeploymentsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.DeploymentsListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/notificationhubs/2017-04-01/namespaces/README.md b/resource-manager/notificationhubs/2017-04-01/namespaces/README.md index cfdfd61f2fd..61a45be1b63 100644 --- a/resource-manager/notificationhubs/2017-04-01/namespaces/README.md +++ b/resource-manager/notificationhubs/2017-04-01/namespaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2017-04-01/namespaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := namespaces.CheckAvailabilityParameters{ // ... @@ -147,7 +148,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -164,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/notificationhubs/2023-09-01/namespaces/README.md b/resource-manager/notificationhubs/2023-09-01/namespaces/README.md index 045c562b279..dc9248c2cf1 100644 --- a/resource-manager/notificationhubs/2023-09-01/namespaces/README.md +++ b/resource-manager/notificationhubs/2023-09-01/namespaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := namespaces.CheckAvailabilityParameters{ // ... @@ -163,7 +164,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id, namespaces.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, namespaces.DefaultListOperationOptions()) @@ -180,7 +181,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id, namespaces.DefaultListAllOperationOptions())` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id, namespaces.DefaultListAllOperationOptions()) diff --git a/resource-manager/operationalinsights/2019-09-01/querypacks/README.md b/resource-manager/operationalinsights/2019-09-01/querypacks/README.md index 5545c936616..942563a1143 100644 --- a/resource-manager/operationalinsights/2019-09-01/querypacks/README.md +++ b/resource-manager/operationalinsights/2019-09-01/querypacks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks" ``` @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := querypacks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := querypacks.LogAnalyticsQueryPack{ // ... @@ -98,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := querypacks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -115,7 +116,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := querypacks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/operationalinsights/2020-08-01/clusters/README.md b/resource-manager/operationalinsights/2020-08-01/clusters/README.md index 5d9cba192b0..93ed14342a4 100644 --- a/resource-manager/operationalinsights/2020-08-01/clusters/README.md +++ b/resource-manager/operationalinsights/2020-08-01/clusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/clusters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/operationalinsights/2020-08-01/deletedworkspaces/README.md b/resource-manager/operationalinsights/2020-08-01/deletedworkspaces/README.md index 9c475fcc4a4..86708d9f0a7 100644 --- a/resource-manager/operationalinsights/2020-08-01/deletedworkspaces/README.md +++ b/resource-manager/operationalinsights/2020-08-01/deletedworkspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/deletedworkspaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := deletedworkspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deletedworkspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/operationalinsights/2020-08-01/workspaces/README.md b/resource-manager/operationalinsights/2020-08-01/workspaces/README.md index 9ab093855c1..b5ec02f5190 100644 --- a/resource-manager/operationalinsights/2020-08-01/workspaces/README.md +++ b/resource-manager/operationalinsights/2020-08-01/workspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces" ``` @@ -133,7 +134,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -149,7 +150,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/operationalinsights/2021-06-01/clusters/README.md b/resource-manager/operationalinsights/2021-06-01/clusters/README.md index 8f960067990..3fe33b0eabb 100644 --- a/resource-manager/operationalinsights/2021-06-01/clusters/README.md +++ b/resource-manager/operationalinsights/2021-06-01/clusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2021-06-01/clusters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/operationalinsights/2021-06-01/deletedworkspaces/README.md b/resource-manager/operationalinsights/2021-06-01/deletedworkspaces/README.md index 3ad9833a100..ce7e68f34f7 100644 --- a/resource-manager/operationalinsights/2021-06-01/deletedworkspaces/README.md +++ b/resource-manager/operationalinsights/2021-06-01/deletedworkspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2021-06-01/deletedworkspaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := deletedworkspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deletedworkspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/operationalinsights/2021-06-01/workspaces/README.md b/resource-manager/operationalinsights/2021-06-01/workspaces/README.md index cc21fdb026b..cc827d17e6c 100644 --- a/resource-manager/operationalinsights/2021-06-01/workspaces/README.md +++ b/resource-manager/operationalinsights/2021-06-01/workspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2021-06-01/workspaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/operationalinsights/2022-10-01/clusters/README.md b/resource-manager/operationalinsights/2022-10-01/clusters/README.md index d8590d9e2e4..340c455082a 100644 --- a/resource-manager/operationalinsights/2022-10-01/clusters/README.md +++ b/resource-manager/operationalinsights/2022-10-01/clusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/operationalinsights/2022-10-01/deletedworkspaces/README.md b/resource-manager/operationalinsights/2022-10-01/deletedworkspaces/README.md index 91f3f4fbce5..af26f4ce96e 100644 --- a/resource-manager/operationalinsights/2022-10-01/deletedworkspaces/README.md +++ b/resource-manager/operationalinsights/2022-10-01/deletedworkspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/deletedworkspaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := deletedworkspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deletedworkspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/operationalinsights/2022-10-01/workspaces/README.md b/resource-manager/operationalinsights/2022-10-01/workspaces/README.md index 68f972d1a48..d32a4dead71 100644 --- a/resource-manager/operationalinsights/2022-10-01/workspaces/README.md +++ b/resource-manager/operationalinsights/2022-10-01/workspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/operationalinsights/2023-09-01/deletedworkspaces/README.md b/resource-manager/operationalinsights/2023-09-01/deletedworkspaces/README.md index 897e521721d..e96ea8ad47f 100644 --- a/resource-manager/operationalinsights/2023-09-01/deletedworkspaces/README.md +++ b/resource-manager/operationalinsights/2023-09-01/deletedworkspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2023-09-01/deletedworkspaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := deletedworkspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deletedworkspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/operationalinsights/2023-09-01/workspaces/README.md b/resource-manager/operationalinsights/2023-09-01/workspaces/README.md index d58b06ce14e..132deaea1b2 100644 --- a/resource-manager/operationalinsights/2023-09-01/workspaces/README.md +++ b/resource-manager/operationalinsights/2023-09-01/workspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2023-09-01/workspaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/operationsmanagement/2015-11-01-preview/managementassociation/README.md b/resource-manager/operationsmanagement/2015-11-01-preview/managementassociation/README.md index 0a88e22d21c..19b912e51f7 100644 --- a/resource-manager/operationsmanagement/2015-11-01-preview/managementassociation/README.md +++ b/resource-manager/operationsmanagement/2015-11-01-preview/managementassociation/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/managementassociation" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementassociation.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/operationsmanagement/2015-11-01-preview/managementconfiguration/README.md b/resource-manager/operationsmanagement/2015-11-01-preview/managementconfiguration/README.md index df763b85ff0..357ac9aa9c6 100644 --- a/resource-manager/operationsmanagement/2015-11-01-preview/managementconfiguration/README.md +++ b/resource-manager/operationsmanagement/2015-11-01-preview/managementconfiguration/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/managementconfiguration" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementconfiguration.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/operationsmanagement/2015-11-01-preview/solution/README.md b/resource-manager/operationsmanagement/2015-11-01-preview/solution/README.md index 06a0b21c61d..d83830aa05c 100644 --- a/resource-manager/operationsmanagement/2015-11-01-preview/solution/README.md +++ b/resource-manager/operationsmanagement/2015-11-01-preview/solution/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := solution.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := solution.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/orbital/2022-11-01/contactprofile/README.md b/resource-manager/orbital/2022-11-01/contactprofile/README.md index f2c3faa709d..46c157e1ef4 100644 --- a/resource-manager/orbital/2022-11-01/contactprofile/README.md +++ b/resource-manager/orbital/2022-11-01/contactprofile/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := contactprofile.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := contactprofile.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/orbital/2022-11-01/groundstation/README.md b/resource-manager/orbital/2022-11-01/groundstation/README.md index 78c9a6e2ce2..ef2db0e34a8 100644 --- a/resource-manager/orbital/2022-11-01/groundstation/README.md +++ b/resource-manager/orbital/2022-11-01/groundstation/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := groundstation.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.AvailableGroundStationsListByCapability(ctx, id, groundstation.DefaultAvailableGroundStationsListByCapabilityOperationOptions())` can be used to do batched pagination items, err := client.AvailableGroundStationsListByCapabilityComplete(ctx, id, groundstation.DefaultAvailableGroundStationsListByCapabilityOperationOptions()) diff --git a/resource-manager/orbital/2022-11-01/spacecraft/README.md b/resource-manager/orbital/2022-11-01/spacecraft/README.md index b6bdd4f0447..de85d7e389d 100644 --- a/resource-manager/orbital/2022-11-01/spacecraft/README.md +++ b/resource-manager/orbital/2022-11-01/spacecraft/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := spacecraft.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := spacecraft.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/paloaltonetworks/2022-08-29/firewalls/README.md b/resource-manager/paloaltonetworks/2022-08-29/firewalls/README.md index aa02beaf904..b061469bd76 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/firewalls/README.md +++ b/resource-manager/paloaltonetworks/2022-08-29/firewalls/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls" ``` @@ -138,7 +139,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewalls.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -155,7 +156,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := firewalls.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/README.md b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/README.md index 64fa28b2298..cdaf397cf29 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/README.md +++ b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks" ``` @@ -145,7 +146,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localrulestacks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -162,7 +163,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrulestacks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/paloaltonetworks/2023-09-01/firewalls/README.md b/resource-manager/paloaltonetworks/2023-09-01/firewalls/README.md index 54b88a82222..f9967760a5b 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/firewalls/README.md +++ b/resource-manager/paloaltonetworks/2023-09-01/firewalls/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls" ``` @@ -138,7 +139,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewalls.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -155,7 +156,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := firewalls.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/README.md b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/README.md index d4e63d24df0..7f4e9ce5203 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/README.md +++ b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks" ``` @@ -146,7 +147,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrulestacks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -163,7 +164,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrulestacks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/policyinsights/2021-10-01/remediations/README.md b/resource-manager/policyinsights/2021-10-01/remediations/README.md index 481148f35a1..1887ba55f06 100644 --- a/resource-manager/policyinsights/2021-10-01/remediations/README.md +++ b/resource-manager/policyinsights/2021-10-01/remediations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations" ``` @@ -385,7 +386,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := remediations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForResource(ctx, id, remediations.DefaultListForResourceOperationOptions())` can be used to do batched pagination items, err := client.ListForResourceComplete(ctx, id, remediations.DefaultListForResourceOperationOptions()) @@ -402,7 +403,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := remediations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListForResourceGroup(ctx, id, remediations.DefaultListForResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListForResourceGroupComplete(ctx, id, remediations.DefaultListForResourceGroupOperationOptions()) @@ -419,7 +420,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := remediations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListForSubscription(ctx, id, remediations.DefaultListForSubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListForSubscriptionComplete(ctx, id, remediations.DefaultListForSubscriptionOperationOptions()) diff --git a/resource-manager/policyinsights/2022-09-01/attestations/README.md b/resource-manager/policyinsights/2022-09-01/attestations/README.md index 3e839d6c7c3..ebc9455fb14 100644 --- a/resource-manager/policyinsights/2022-09-01/attestations/README.md +++ b/resource-manager/policyinsights/2022-09-01/attestations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2022-09-01/attestations" ``` @@ -171,7 +172,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := attestations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForResource(ctx, id, attestations.DefaultListForResourceOperationOptions())` can be used to do batched pagination items, err := client.ListForResourceComplete(ctx, id, attestations.DefaultListForResourceOperationOptions()) @@ -188,7 +189,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := attestations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListForResourceGroup(ctx, id, attestations.DefaultListForResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListForResourceGroupComplete(ctx, id, attestations.DefaultListForResourceGroupOperationOptions()) @@ -205,7 +206,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := attestations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListForSubscription(ctx, id, attestations.DefaultListForSubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListForSubscriptionComplete(ctx, id, attestations.DefaultListForSubscriptionOperationOptions()) diff --git a/resource-manager/policyinsights/2023-03-01/checkpolicyrestrictions/README.md b/resource-manager/policyinsights/2023-03-01/checkpolicyrestrictions/README.md index a814b919b40..4c293229abe 100644 --- a/resource-manager/policyinsights/2023-03-01/checkpolicyrestrictions/README.md +++ b/resource-manager/policyinsights/2023-03-01/checkpolicyrestrictions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2023-03-01/checkpolicyrestrictions" ``` @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := checkpolicyrestrictions.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := checkpolicyrestrictions.CheckRestrictionsRequest{ // ... @@ -66,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := checkpolicyrestrictions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checkpolicyrestrictions.CheckRestrictionsRequest{ // ... diff --git a/resource-manager/portal/2019-01-01-preview/dashboard/README.md b/resource-manager/portal/2019-01-01-preview/dashboard/README.md index b9c6ba43e43..6816689468f 100644 --- a/resource-manager/portal/2019-01-01-preview/dashboard/README.md +++ b/resource-manager/portal/2019-01-01-preview/dashboard/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dashboard.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dashboard.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/portal/2020-09-01-preview/dashboard/README.md b/resource-manager/portal/2020-09-01-preview/dashboard/README.md index 650b5e4b4b5..baaeeff079d 100644 --- a/resource-manager/portal/2020-09-01-preview/dashboard/README.md +++ b/resource-manager/portal/2020-09-01-preview/dashboard/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/portal/2020-09-01-preview/dashboard" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dashboard.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dashboard.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/postgresql/2017-12-01/checknameavailability/README.md b/resource-manager/postgresql/2017-12-01/checknameavailability/README.md index 924ee055dd9..f01c09387f2 100644 --- a/resource-manager/postgresql/2017-12-01/checknameavailability/README.md +++ b/resource-manager/postgresql/2017-12-01/checknameavailability/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/checknameavailability" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checknameavailability.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checknameavailability.NameAvailabilityRequest{ // ... diff --git a/resource-manager/postgresql/2017-12-01/servers/README.md b/resource-manager/postgresql/2017-12-01/servers/README.md index 819b1fc44b1..e3d583d72af 100644 --- a/resource-manager/postgresql/2017-12-01/servers/README.md +++ b/resource-manager/postgresql/2017-12-01/servers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/postgresql/2021-06-01/checknameavailability/README.md b/resource-manager/postgresql/2021-06-01/checknameavailability/README.md index 8a1df3f484b..f7221556a7d 100644 --- a/resource-manager/postgresql/2021-06-01/checknameavailability/README.md +++ b/resource-manager/postgresql/2021-06-01/checknameavailability/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/checknameavailability" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checknameavailability.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checknameavailability.NameAvailabilityRequest{ // ... diff --git a/resource-manager/postgresql/2021-06-01/servers/README.md b/resource-manager/postgresql/2021-06-01/servers/README.md index 40d3db83ae8..4451ae5ff3f 100644 --- a/resource-manager/postgresql/2021-06-01/servers/README.md +++ b/resource-manager/postgresql/2021-06-01/servers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/servers" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/postgresql/2022-12-01/checknameavailability/README.md b/resource-manager/postgresql/2022-12-01/checknameavailability/README.md index 11eb178b166..84ea7de2176 100644 --- a/resource-manager/postgresql/2022-12-01/checknameavailability/README.md +++ b/resource-manager/postgresql/2022-12-01/checknameavailability/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/checknameavailability" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checknameavailability.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checknameavailability.CheckNameAvailabilityRequest{ // ... diff --git a/resource-manager/postgresql/2022-12-01/servers/README.md b/resource-manager/postgresql/2022-12-01/servers/README.md index 8a35cb4e486..22f782e7ef7 100644 --- a/resource-manager/postgresql/2022-12-01/servers/README.md +++ b/resource-manager/postgresql/2022-12-01/servers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/servers" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/postgresql/2023-06-01-preview/checknameavailability/README.md b/resource-manager/postgresql/2023-06-01-preview/checknameavailability/README.md index 2269eecc6dd..bb506cb2b31 100644 --- a/resource-manager/postgresql/2023-06-01-preview/checknameavailability/README.md +++ b/resource-manager/postgresql/2023-06-01-preview/checknameavailability/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/checknameavailability" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checknameavailability.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := checknameavailability.CheckNameAvailabilityRequest{ // ... diff --git a/resource-manager/postgresql/2023-06-01-preview/servers/README.md b/resource-manager/postgresql/2023-06-01-preview/servers/README.md index c42f91436f4..e00f2cc165d 100644 --- a/resource-manager/postgresql/2023-06-01-preview/servers/README.md +++ b/resource-manager/postgresql/2023-06-01-preview/servers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/postgresqlhsc/2020-10-05-privatepreview/servergroups/README.md b/resource-manager/postgresqlhsc/2020-10-05-privatepreview/servergroups/README.md index f8d2219d00c..31aa4008742 100644 --- a/resource-manager/postgresqlhsc/2020-10-05-privatepreview/servergroups/README.md +++ b/resource-manager/postgresqlhsc/2020-10-05-privatepreview/servergroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2020-10-05-privatepreview/servergroups" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servergroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := servergroups.NameAvailabilityRequest{ // ... @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servergroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -107,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servergroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/postgresqlhsc/2022-11-08/clusters/README.md b/resource-manager/postgresqlhsc/2022-11-08/clusters/README.md index 25b7b84c5ac..a5da8c0e78f 100644 --- a/resource-manager/postgresqlhsc/2022-11-08/clusters/README.md +++ b/resource-manager/postgresqlhsc/2022-11-08/clusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := clusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := clusters.NameAvailabilityRequest{ // ... @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -107,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/powerbidedicated/2021-01-01/autoscalevcores/README.md b/resource-manager/powerbidedicated/2021-01-01/autoscalevcores/README.md index fba2885a2fd..c4b6fb399d3 100644 --- a/resource-manager/powerbidedicated/2021-01-01/autoscalevcores/README.md +++ b/resource-manager/powerbidedicated/2021-01-01/autoscalevcores/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/autoscalevcores" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := autoscalevcores.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := autoscalevcores.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/powerbidedicated/2021-01-01/capacities/README.md b/resource-manager/powerbidedicated/2021-01-01/capacities/README.md index 4f30f232e60..f21f0dbbf60 100644 --- a/resource-manager/powerbidedicated/2021-01-01/capacities/README.md +++ b/resource-manager/powerbidedicated/2021-01-01/capacities/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities" ``` @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capacities.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -106,7 +107,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capacities.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/powerbidedicated/2021-01-01/powerbidedicated/README.md b/resource-manager/powerbidedicated/2021-01-01/powerbidedicated/README.md index 2dbaa066151..7fe9c65a92f 100644 --- a/resource-manager/powerbidedicated/2021-01-01/powerbidedicated/README.md +++ b/resource-manager/powerbidedicated/2021-01-01/powerbidedicated/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/powerbidedicated" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := powerbidedicated.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.CapacitiesListSkus(ctx, id) if err != nil { diff --git a/resource-manager/privatedns/2020-06-01/privatezones/README.md b/resource-manager/privatedns/2020-06-01/privatezones/README.md index e7f2e366531..bec9369751a 100644 --- a/resource-manager/privatedns/2020-06-01/privatezones/README.md +++ b/resource-manager/privatedns/2020-06-01/privatezones/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatezones.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, privatezones.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, privatezones.DefaultListOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatezones.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, privatezones.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, privatezones.DefaultListByResourceGroupOperationOptions()) diff --git a/resource-manager/purview/2021-07-01/account/README.md b/resource-manager/purview/2021-07-01/account/README.md index 27b4202393c..25e125a7258 100644 --- a/resource-manager/purview/2021-07-01/account/README.md +++ b/resource-manager/purview/2021-07-01/account/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account" ``` @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := account.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -107,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := account.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/purview/2021-07-01/provider/README.md b/resource-manager/purview/2021-07-01/provider/README.md index 7d48f25b492..cca6aa0ef2d 100644 --- a/resource-manager/purview/2021-07-01/provider/README.md +++ b/resource-manager/purview/2021-07-01/provider/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/provider" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := provider.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := provider.CheckNameAvailabilityRequest{ // ... diff --git a/resource-manager/purview/2021-12-01/account/README.md b/resource-manager/purview/2021-12-01/account/README.md index e713dc1a5e5..7b8ee49cd77 100644 --- a/resource-manager/purview/2021-12-01/account/README.md +++ b/resource-manager/purview/2021-12-01/account/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-12-01/account" ``` @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := account.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -107,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := account.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/purview/2021-12-01/provider/README.md b/resource-manager/purview/2021-12-01/provider/README.md index 791a54f165c..1868434a8b5 100644 --- a/resource-manager/purview/2021-12-01/provider/README.md +++ b/resource-manager/purview/2021-12-01/provider/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-12-01/provider" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := provider.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := provider.CheckNameAvailabilityRequest{ // ... diff --git a/resource-manager/qumulostorage/2022-10-12/filesystems/README.md b/resource-manager/qumulostorage/2022-10-12/filesystems/README.md index d79e3b3f2f3..e621a47ac68 100644 --- a/resource-manager/qumulostorage/2022-10-12/filesystems/README.md +++ b/resource-manager/qumulostorage/2022-10-12/filesystems/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/qumulostorage/2022-10-12/filesystems" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := filesystems.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := filesystems.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/recoveryservices/2022-10-01/vaults/README.md b/resource-manager/recoveryservices/2022-10-01/vaults/README.md index 09cb3a6cb0d..ae90e2661a7 100644 --- a/resource-manager/recoveryservices/2022-10-01/vaults/README.md +++ b/resource-manager/recoveryservices/2022-10-01/vaults/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2022-10-01/vaults" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscriptionId(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionIdComplete(ctx, id) diff --git a/resource-manager/recoveryservices/2023-02-01/vaults/README.md b/resource-manager/recoveryservices/2023-02-01/vaults/README.md index 2b46404fda2..7212c8bb520 100644 --- a/resource-manager/recoveryservices/2023-02-01/vaults/README.md +++ b/resource-manager/recoveryservices/2023-02-01/vaults/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2023-02-01/vaults" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscriptionId(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionIdComplete(ctx, id) diff --git a/resource-manager/recoveryservices/2023-04-01/vaults/README.md b/resource-manager/recoveryservices/2023-04-01/vaults/README.md index 5a3db00f49f..dbe5e1f5d58 100644 --- a/resource-manager/recoveryservices/2023-04-01/vaults/README.md +++ b/resource-manager/recoveryservices/2023-04-01/vaults/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2023-04-01/vaults" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscriptionId(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionIdComplete(ctx, id) diff --git a/resource-manager/recoveryservices/2023-06-01/vaults/README.md b/resource-manager/recoveryservices/2023-06-01/vaults/README.md index f432deaeeba..4b23c08812f 100644 --- a/resource-manager/recoveryservices/2023-06-01/vaults/README.md +++ b/resource-manager/recoveryservices/2023-06-01/vaults/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2023-06-01/vaults" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscriptionId(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionIdComplete(ctx, id) diff --git a/resource-manager/recoveryservices/2023-08-01/vaults/README.md b/resource-manager/recoveryservices/2023-08-01/vaults/README.md index 2563e96bd91..8db5fe7f2b3 100644 --- a/resource-manager/recoveryservices/2023-08-01/vaults/README.md +++ b/resource-manager/recoveryservices/2023-08-01/vaults/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2023-08-01/vaults" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vaults.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscriptionId(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionIdComplete(ctx, id) diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/operations/README.md b/resource-manager/recoveryservicessiterecovery/2022-10-01/operations/README.md index 00c4c402ef8..ead71e014eb 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/operations/README.md +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/operations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2022-10-01/operations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/operations/README.md b/resource-manager/recoveryservicessiterecovery/2023-01-01/operations/README.md index bc01d900c52..f34e6ea6bbf 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/operations/README.md +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/operations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-01-01/operations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/operations/README.md b/resource-manager/recoveryservicessiterecovery/2023-02-01/operations/README.md index 06aa4297039..6aa64a131d3 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/operations/README.md +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/operations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-02-01/operations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/operations/README.md b/resource-manager/recoveryservicessiterecovery/2023-04-01/operations/README.md index 24e65fc2b30..e8562351bd8 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/operations/README.md +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/operations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-04-01/operations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/operations/README.md b/resource-manager/recoveryservicessiterecovery/2023-06-01/operations/README.md index ce23a9c4665..7fe35487d1b 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/operations/README.md +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/operations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-06-01/operations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/README.md b/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/README.md index 355b243de62..d27ca89260d 100644 --- a/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/README.md +++ b/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := openshiftclusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -102,7 +103,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := openshiftclusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/redis/2023-08-01/redis/README.md b/resource-manager/redis/2023-08-01/redis/README.md index 29891d03d6b..6a5b9293257 100644 --- a/resource-manager/redis/2023-08-01/redis/README.md +++ b/resource-manager/redis/2023-08-01/redis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis" ``` @@ -148,7 +149,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := redis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := redis.CheckNameAvailabilityParameters{ // ... @@ -413,7 +414,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := redis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -430,7 +431,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := redis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/redisenterprise/2023-07-01/redisenterprise/README.md b/resource-manager/redisenterprise/2023-07-01/redisenterprise/README.md index b5ce463ffbc..c9ebdf9cec5 100644 --- a/resource-manager/redisenterprise/2023-07-01/redisenterprise/README.md +++ b/resource-manager/redisenterprise/2023-07-01/redisenterprise/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/redisenterprise" ``` @@ -249,7 +250,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redisenterprise.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -266,7 +267,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := redisenterprise.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/README.md b/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/README.md index 4bebf61c0d1..c836dbd64fd 100644 --- a/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/README.md +++ b/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := redisenterprise.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := redisenterprise.CheckNameAvailabilityParameters{ // ... @@ -270,7 +271,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redisenterprise.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -287,7 +288,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := redisenterprise.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/redisenterprise/2023-11-01/redisenterprise/README.md b/resource-manager/redisenterprise/2023-11-01/redisenterprise/README.md index d66b689136d..1099eb248e6 100644 --- a/resource-manager/redisenterprise/2023-11-01/redisenterprise/README.md +++ b/resource-manager/redisenterprise/2023-11-01/redisenterprise/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-11-01/redisenterprise" ``` @@ -249,7 +250,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redisenterprise.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -266,7 +267,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := redisenterprise.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/relay/2021-11-01/namespaces/README.md b/resource-manager/relay/2021-11-01/namespaces/README.md index eca6f63145a..9f3e21f35f7 100644 --- a/resource-manager/relay/2021-11-01/namespaces/README.md +++ b/resource-manager/relay/2021-11-01/namespaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := namespaces.CheckNameAvailability{ // ... @@ -180,7 +181,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -214,7 +215,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/resourceconnector/2022-10-27/appliances/README.md b/resource-manager/resourceconnector/2022-10-27/appliances/README.md index 8d17fd3e375..ff4df4e9187 100644 --- a/resource-manager/resourceconnector/2022-10-27/appliances/README.md +++ b/resource-manager/resourceconnector/2022-10-27/appliances/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appliances.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.GetTelemetryConfig(ctx, id) if err != nil { @@ -101,7 +102,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appliances.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -118,7 +119,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appliances.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/resources/2020-05-01/managementlocks/README.md b/resource-manager/resources/2020-05-01/managementlocks/README.md index df291f3f3ee..ee78c49b886 100644 --- a/resource-manager/resources/2020-05-01/managementlocks/README.md +++ b/resource-manager/resources/2020-05-01/managementlocks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks" ``` @@ -236,7 +237,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementlocks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListAtResourceGroupLevel(ctx, id, managementlocks.DefaultListAtResourceGroupLevelOperationOptions())` can be used to do batched pagination items, err := client.ListAtResourceGroupLevelComplete(ctx, id, managementlocks.DefaultListAtResourceGroupLevelOperationOptions()) @@ -253,7 +254,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managementlocks.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListAtResourceLevel(ctx, id, managementlocks.DefaultListAtResourceLevelOperationOptions())` can be used to do batched pagination items, err := client.ListAtResourceLevelComplete(ctx, id, managementlocks.DefaultListAtResourceLevelOperationOptions()) @@ -270,7 +271,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managementlocks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAtSubscriptionLevel(ctx, id, managementlocks.DefaultListAtSubscriptionLevelOperationOptions())` can be used to do batched pagination items, err := client.ListAtSubscriptionLevelComplete(ctx, id, managementlocks.DefaultListAtSubscriptionLevelOperationOptions()) @@ -287,7 +288,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managementlocks.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByScope(ctx, id, managementlocks.DefaultListByScopeOperationOptions())` can be used to do batched pagination items, err := client.ListByScopeComplete(ctx, id, managementlocks.DefaultListByScopeOperationOptions()) diff --git a/resource-manager/resources/2020-05-01/privatelinkassociation/README.md b/resource-manager/resources/2020-05-01/privatelinkassociation/README.md index a77321d1c84..23893a19898 100644 --- a/resource-manager/resources/2020-05-01/privatelinkassociation/README.md +++ b/resource-manager/resources/2020-05-01/privatelinkassociation/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation" ``` @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkassociation.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/README.md b/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/README.md index bf06000f7aa..ee9c8fa9b4e 100644 --- a/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/README.md +++ b/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink" ``` @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcemanagementprivatelink.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { @@ -72,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcemanagementprivatelink.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/resources/2020-10-01/deployments/README.md b/resource-manager/resources/2020-10-01/deployments/README.md index b79d21f621e..daafb8fd8b7 100644 --- a/resource-manager/resources/2020-10-01/deployments/README.md +++ b/resource-manager/resources/2020-10-01/deployments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deployments" ``` @@ -505,7 +506,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deployments.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") // alternatively `client.ListAtManagementGroupScope(ctx, id, deployments.DefaultListAtManagementGroupScopeOperationOptions())` can be used to do batched pagination items, err := client.ListAtManagementGroupScopeComplete(ctx, id, deployments.DefaultListAtManagementGroupScopeOperationOptions()) @@ -522,7 +523,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deployments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListAtScope(ctx, id, deployments.DefaultListAtScopeOperationOptions())` can be used to do batched pagination items, err := client.ListAtScopeComplete(ctx, id, deployments.DefaultListAtScopeOperationOptions()) @@ -539,7 +540,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deployments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAtSubscriptionScope(ctx, id, deployments.DefaultListAtSubscriptionScopeOperationOptions())` can be used to do batched pagination items, err := client.ListAtSubscriptionScopeComplete(ctx, id, deployments.DefaultListAtSubscriptionScopeOperationOptions()) @@ -573,7 +574,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deployments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, deployments.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, deployments.DefaultListByResourceGroupOperationOptions()) diff --git a/resource-manager/resources/2020-10-01/deploymentscripts/README.md b/resource-manager/resources/2020-10-01/deploymentscripts/README.md index fbef639a699..9cd5c287efe 100644 --- a/resource-manager/resources/2020-10-01/deploymentscripts/README.md +++ b/resource-manager/resources/2020-10-01/deploymentscripts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts" ``` @@ -105,7 +106,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deploymentscripts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -122,7 +123,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deploymentscripts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/resources/2020-10-01/providers/README.md b/resource-manager/resources/2020-10-01/providers/README.md index 749cf8d5a7e..859007770c6 100644 --- a/resource-manager/resources/2020-10-01/providers/README.md +++ b/resource-manager/resources/2020-10-01/providers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/providers" ``` @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := providers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, providers.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, providers.DefaultListOperationOptions()) diff --git a/resource-manager/resources/2020-10-01/resourcegroups/README.md b/resource-manager/resources/2020-10-01/resourcegroups/README.md index 8a5ee9fa8ad..db651ce34ef 100644 --- a/resource-manager/resources/2020-10-01/resourcegroups/README.md +++ b/resource-manager/resources/2020-10-01/resourcegroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/resourcegroups" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.CheckExistence(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resourcegroups.ResourceGroup{ // ... @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -73,7 +74,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resourcegroups.ExportTemplateRequest{ // ... @@ -90,7 +91,7 @@ if err := client.ExportTemplateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.Get(ctx, id) if err != nil { @@ -106,7 +107,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcegroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, resourcegroups.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, resourcegroups.DefaultListOperationOptions()) @@ -123,7 +124,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ResourcesListByResourceGroup(ctx, id, resourcegroups.DefaultResourcesListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ResourcesListByResourceGroupComplete(ctx, id, resourcegroups.DefaultResourcesListByResourceGroupOperationOptions()) @@ -140,7 +141,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resourcegroups.ResourceGroupPatchable{ // ... diff --git a/resource-manager/resources/2020-10-01/resources/README.md b/resource-manager/resources/2020-10-01/resources/README.md index 25b6558ea09..04c6ae1a8bb 100644 --- a/resource-manager/resources/2020-10-01/resources/README.md +++ b/resource-manager/resources/2020-10-01/resources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/resources" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.CheckExistence(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.CheckExistenceById(ctx, id) if err != nil { @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := resources.GenericResource{ // ... @@ -73,7 +74,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := resources.GenericResource{ // ... @@ -90,7 +91,7 @@ if err := client.CreateOrUpdateByIdThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -102,7 +103,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.DeleteByIdThenPoll(ctx, id); err != nil { // handle the error @@ -114,7 +115,7 @@ if err := client.DeleteByIdThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id) if err != nil { @@ -130,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.GetById(ctx, id) if err != nil { @@ -146,7 +147,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resources.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, resources.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, resources.DefaultListOperationOptions()) @@ -163,7 +164,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resources.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resources.ResourcesMoveInfo{ // ... @@ -180,7 +181,7 @@ if err := client.MoveResourcesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := resources.GenericResource{ // ... @@ -197,7 +198,7 @@ if err := client.UpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := resources.GenericResource{ // ... @@ -214,7 +215,7 @@ if err := client.UpdateByIdThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resources.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resources.ResourcesMoveInfo{ // ... diff --git a/resource-manager/resources/2020-10-01/tags/README.md b/resource-manager/resources/2020-10-01/tags/README.md index fcdc8e81885..9a0e1d20f3b 100644 --- a/resource-manager/resources/2020-10-01/tags/README.md +++ b/resource-manager/resources/2020-10-01/tags/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/tags" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tags.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := tags.TagsResource{ // ... @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tags.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.DeleteAtScope(ctx, id) if err != nil { @@ -125,7 +126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tags.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.GetAtScope(ctx, id) if err != nil { @@ -141,7 +142,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tags.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -158,7 +159,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := tags.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := tags.TagsPatchResource{ // ... diff --git a/resource-manager/resources/2021-07-01/features/README.md b/resource-manager/resources/2021-07-01/features/README.md index e6f3ac4be9f..eb376dd2c91 100644 --- a/resource-manager/resources/2021-07-01/features/README.md +++ b/resource-manager/resources/2021-07-01/features/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features" ``` @@ -57,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := features.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/resources/2021-07-01/subscriptionfeatureregistrations/README.md b/resource-manager/resources/2021-07-01/subscriptionfeatureregistrations/README.md index e8c521af5d8..4b8bfbe3f91 100644 --- a/resource-manager/resources/2021-07-01/subscriptionfeatureregistrations/README.md +++ b/resource-manager/resources/2021-07-01/subscriptionfeatureregistrations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/subscriptionfeatureregistrations" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscriptionfeatureregistrations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAllBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListAllBySubscriptionComplete(ctx, id) diff --git a/resource-manager/resources/2022-02-01/templatespecs/README.md b/resource-manager/resources/2022-02-01/templatespecs/README.md index 0145789483f..656649d91a0 100644 --- a/resource-manager/resources/2022-02-01/templatespecs/README.md +++ b/resource-manager/resources/2022-02-01/templatespecs/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecs" ``` @@ -110,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := templatespecs.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, templatespecs.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, templatespecs.DefaultListByResourceGroupOperationOptions()) @@ -127,7 +128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := templatespecs.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, templatespecs.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, templatespecs.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/resources/2022-06-01/policyassignments/README.md b/resource-manager/resources/2022-06-01/policyassignments/README.md index b730a76a075..13afd4e88e7 100644 --- a/resource-manager/resources/2022-06-01/policyassignments/README.md +++ b/resource-manager/resources/2022-06-01/policyassignments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments" ``` @@ -130,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyassignments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, policyassignments.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, policyassignments.DefaultListOperationOptions()) @@ -147,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := policyassignments.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") // alternatively `client.ListForManagementGroup(ctx, id, policyassignments.DefaultListForManagementGroupOperationOptions())` can be used to do batched pagination items, err := client.ListForManagementGroupComplete(ctx, id, policyassignments.DefaultListForManagementGroupOperationOptions()) @@ -164,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := policyassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListForResource(ctx, id, policyassignments.DefaultListForResourceOperationOptions())` can be used to do batched pagination items, err := client.ListForResourceComplete(ctx, id, policyassignments.DefaultListForResourceOperationOptions()) @@ -181,7 +182,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := policyassignments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListForResourceGroup(ctx, id, policyassignments.DefaultListForResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListForResourceGroupComplete(ctx, id, policyassignments.DefaultListForResourceGroupOperationOptions()) diff --git a/resource-manager/resources/2022-09-01/deployments/README.md b/resource-manager/resources/2022-09-01/deployments/README.md index b876196f228..2ef602442ac 100644 --- a/resource-manager/resources/2022-09-01/deployments/README.md +++ b/resource-manager/resources/2022-09-01/deployments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/deployments" ``` @@ -505,7 +506,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deployments.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") // alternatively `client.ListAtManagementGroupScope(ctx, id, deployments.DefaultListAtManagementGroupScopeOperationOptions())` can be used to do batched pagination items, err := client.ListAtManagementGroupScopeComplete(ctx, id, deployments.DefaultListAtManagementGroupScopeOperationOptions()) @@ -522,7 +523,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deployments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListAtScope(ctx, id, deployments.DefaultListAtScopeOperationOptions())` can be used to do batched pagination items, err := client.ListAtScopeComplete(ctx, id, deployments.DefaultListAtScopeOperationOptions()) @@ -539,7 +540,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deployments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAtSubscriptionScope(ctx, id, deployments.DefaultListAtSubscriptionScopeOperationOptions())` can be used to do batched pagination items, err := client.ListAtSubscriptionScopeComplete(ctx, id, deployments.DefaultListAtSubscriptionScopeOperationOptions()) @@ -573,7 +574,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deployments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, deployments.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, deployments.DefaultListByResourceGroupOperationOptions()) diff --git a/resource-manager/resources/2022-09-01/providers/README.md b/resource-manager/resources/2022-09-01/providers/README.md index d285112a68e..1344f93e985 100644 --- a/resource-manager/resources/2022-09-01/providers/README.md +++ b/resource-manager/resources/2022-09-01/providers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers" ``` @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := providers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, providers.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, providers.DefaultListOperationOptions()) diff --git a/resource-manager/resources/2022-09-01/resourcegroups/README.md b/resource-manager/resources/2022-09-01/resourcegroups/README.md index 7ec351b4602..67c00f8ecc9 100644 --- a/resource-manager/resources/2022-09-01/resourcegroups/README.md +++ b/resource-manager/resources/2022-09-01/resourcegroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/resourcegroups" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.CheckExistence(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resourcegroups.ResourceGroup{ // ... @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") if err := client.DeleteThenPoll(ctx, id, resourcegroups.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -73,7 +74,7 @@ if err := client.DeleteThenPoll(ctx, id, resourcegroups.DefaultDeleteOperationOp ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resourcegroups.ExportTemplateRequest{ // ... @@ -90,7 +91,7 @@ if err := client.ExportTemplateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.Get(ctx, id) if err != nil { @@ -106,7 +107,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcegroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, resourcegroups.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, resourcegroups.DefaultListOperationOptions()) @@ -123,7 +124,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ResourcesListByResourceGroup(ctx, id, resourcegroups.DefaultResourcesListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ResourcesListByResourceGroupComplete(ctx, id, resourcegroups.DefaultResourcesListByResourceGroupOperationOptions()) @@ -140,7 +141,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resourcegroups.ResourceGroupPatchable{ // ... diff --git a/resource-manager/resources/2022-09-01/resources/README.md b/resource-manager/resources/2022-09-01/resources/README.md index 81500d60dee..54ac1c69362 100644 --- a/resource-manager/resources/2022-09-01/resources/README.md +++ b/resource-manager/resources/2022-09-01/resources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/resources" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.CheckExistence(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.CheckExistenceById(ctx, id) if err != nil { @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := resources.GenericResource{ // ... @@ -73,7 +74,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := resources.GenericResource{ // ... @@ -90,7 +91,7 @@ if err := client.CreateOrUpdateByIdThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -102,7 +103,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.DeleteByIdThenPoll(ctx, id); err != nil { // handle the error @@ -114,7 +115,7 @@ if err := client.DeleteByIdThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id) if err != nil { @@ -130,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.GetById(ctx, id) if err != nil { @@ -146,7 +147,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resources.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, resources.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, resources.DefaultListOperationOptions()) @@ -163,7 +164,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resources.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resources.ResourcesMoveInfo{ // ... @@ -180,7 +181,7 @@ if err := client.MoveResourcesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := resources.GenericResource{ // ... @@ -197,7 +198,7 @@ if err := client.UpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := resources.GenericResource{ // ... @@ -214,7 +215,7 @@ if err := client.UpdateByIdThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resources.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resources.ResourcesMoveInfo{ // ... diff --git a/resource-manager/resources/2022-09-01/tags/README.md b/resource-manager/resources/2022-09-01/tags/README.md index 401bda554e3..d22f5511aff 100644 --- a/resource-manager/resources/2022-09-01/tags/README.md +++ b/resource-manager/resources/2022-09-01/tags/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/tags" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tags.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := tags.TagsResource{ // ... @@ -89,7 +90,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tags.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.DeleteAtScopeThenPoll(ctx, id); err != nil { // handle the error @@ -117,7 +118,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tags.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.GetAtScope(ctx, id) if err != nil { @@ -133,7 +134,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tags.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -150,7 +151,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := tags.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := tags.TagsPatchResource{ // ... diff --git a/resource-manager/resources/2022-12-01/subscriptions/README.md b/resource-manager/resources/2022-12-01/subscriptions/README.md index 6132a344397..2ed828afea8 100644 --- a/resource-manager/resources/2022-12-01/subscriptions/README.md +++ b/resource-manager/resources/2022-12-01/subscriptions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := subscriptions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := subscriptions.CheckZonePeersRequest{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscriptions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.Get(ctx, id) if err != nil { @@ -78,7 +79,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := subscriptions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListLocations(ctx, id, subscriptions.DefaultListLocationsOperationOptions()) if err != nil { diff --git a/resource-manager/resources/2023-07-01/deployments/README.md b/resource-manager/resources/2023-07-01/deployments/README.md index 50e8ba3d69c..3c510f65202 100644 --- a/resource-manager/resources/2023-07-01/deployments/README.md +++ b/resource-manager/resources/2023-07-01/deployments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/deployments" ``` @@ -505,7 +506,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deployments.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupIdValue") // alternatively `client.ListAtManagementGroupScope(ctx, id, deployments.DefaultListAtManagementGroupScopeOperationOptions())` can be used to do batched pagination items, err := client.ListAtManagementGroupScopeComplete(ctx, id, deployments.DefaultListAtManagementGroupScopeOperationOptions()) @@ -522,7 +523,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deployments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListAtScope(ctx, id, deployments.DefaultListAtScopeOperationOptions())` can be used to do batched pagination items, err := client.ListAtScopeComplete(ctx, id, deployments.DefaultListAtScopeOperationOptions()) @@ -539,7 +540,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deployments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAtSubscriptionScope(ctx, id, deployments.DefaultListAtSubscriptionScopeOperationOptions())` can be used to do batched pagination items, err := client.ListAtSubscriptionScopeComplete(ctx, id, deployments.DefaultListAtSubscriptionScopeOperationOptions()) @@ -573,7 +574,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deployments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, deployments.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, deployments.DefaultListByResourceGroupOperationOptions()) diff --git a/resource-manager/resources/2023-07-01/providers/README.md b/resource-manager/resources/2023-07-01/providers/README.md index 10531ac968b..acabf6ff6cd 100644 --- a/resource-manager/resources/2023-07-01/providers/README.md +++ b/resource-manager/resources/2023-07-01/providers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/providers" ``` @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := providers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, providers.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, providers.DefaultListOperationOptions()) diff --git a/resource-manager/resources/2023-07-01/resourcegroups/README.md b/resource-manager/resources/2023-07-01/resourcegroups/README.md index 87da72c2b72..44f066eb561 100644 --- a/resource-manager/resources/2023-07-01/resourcegroups/README.md +++ b/resource-manager/resources/2023-07-01/resourcegroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.CheckExistence(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resourcegroups.ResourceGroup{ // ... @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") if err := client.DeleteThenPoll(ctx, id, resourcegroups.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -73,7 +74,7 @@ if err := client.DeleteThenPoll(ctx, id, resourcegroups.DefaultDeleteOperationOp ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resourcegroups.ExportTemplateRequest{ // ... @@ -90,7 +91,7 @@ if err := client.ExportTemplateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.Get(ctx, id) if err != nil { @@ -106,7 +107,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcegroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, resourcegroups.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, resourcegroups.DefaultListOperationOptions()) @@ -123,7 +124,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ResourcesListByResourceGroup(ctx, id, resourcegroups.DefaultResourcesListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ResourcesListByResourceGroupComplete(ctx, id, resourcegroups.DefaultResourcesListByResourceGroupOperationOptions()) @@ -140,7 +141,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourcegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resourcegroups.ResourceGroupPatchable{ // ... diff --git a/resource-manager/resources/2023-07-01/resources/README.md b/resource-manager/resources/2023-07-01/resources/README.md index 8b36fc2aa7e..b8dfa361f52 100644 --- a/resource-manager/resources/2023-07-01/resources/README.md +++ b/resource-manager/resources/2023-07-01/resources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resources" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.CheckExistence(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.CheckExistenceById(ctx, id) if err != nil { @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := resources.GenericResource{ // ... @@ -73,7 +74,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := resources.GenericResource{ // ... @@ -90,7 +91,7 @@ if err := client.CreateOrUpdateByIdThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -102,7 +103,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.DeleteByIdThenPoll(ctx, id); err != nil { // handle the error @@ -114,7 +115,7 @@ if err := client.DeleteByIdThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id) if err != nil { @@ -130,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.GetById(ctx, id) if err != nil { @@ -146,7 +147,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resources.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, resources.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, resources.DefaultListOperationOptions()) @@ -163,7 +164,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resources.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resources.ResourcesMoveInfo{ // ... @@ -180,7 +181,7 @@ if err := client.MoveResourcesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := resources.GenericResource{ // ... @@ -197,7 +198,7 @@ if err := client.UpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resources.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := resources.GenericResource{ // ... @@ -214,7 +215,7 @@ if err := client.UpdateByIdThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resources.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resources.ResourcesMoveInfo{ // ... diff --git a/resource-manager/resources/2023-07-01/tags/README.md b/resource-manager/resources/2023-07-01/tags/README.md index e9f7884c3ad..61f365bbcab 100644 --- a/resource-manager/resources/2023-07-01/tags/README.md +++ b/resource-manager/resources/2023-07-01/tags/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tags.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := tags.TagsResource{ // ... @@ -89,7 +90,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tags.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.DeleteAtScopeThenPoll(ctx, id); err != nil { // handle the error @@ -117,7 +118,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tags.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.GetAtScope(ctx, id) if err != nil { @@ -133,7 +134,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tags.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -150,7 +151,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := tags.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := tags.TagsPatchResource{ // ... diff --git a/resource-manager/resources/2023-08-01/deploymentscripts/README.md b/resource-manager/resources/2023-08-01/deploymentscripts/README.md index 2a0d3f66203..92e6fa2e035 100644 --- a/resource-manager/resources/2023-08-01/deploymentscripts/README.md +++ b/resource-manager/resources/2023-08-01/deploymentscripts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-08-01/deploymentscripts" ``` @@ -105,7 +106,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deploymentscripts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -122,7 +123,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deploymentscripts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/search/2022-09-01/services/README.md b/resource-manager/search/2022-09-01/services/README.md index 6613cde3d8a..e9cc82f8c78 100644 --- a/resource-manager/search/2022-09-01/services/README.md +++ b/resource-manager/search/2022-09-01/services/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := services.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := services.CheckNameAvailabilityInput{ // ... @@ -94,7 +95,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := services.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, services.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, services.DefaultListByResourceGroupOperationOptions()) @@ -111,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := services.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, services.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, services.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/search/2023-11-01/services/README.md b/resource-manager/search/2023-11-01/services/README.md index 98bdc435da7..f08ea3116e2 100644 --- a/resource-manager/search/2023-11-01/services/README.md +++ b/resource-manager/search/2023-11-01/services/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := services.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := services.CheckNameAvailabilityInput{ // ... @@ -94,7 +95,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := services.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, services.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, services.DefaultListByResourceGroupOperationOptions()) @@ -111,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := services.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id, services.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id, services.DefaultListBySubscriptionOperationOptions()) diff --git a/resource-manager/security/2017-08-01-preview/advancedthreatprotection/README.md b/resource-manager/security/2017-08-01-preview/advancedthreatprotection/README.md index 7d3ae8b2c76..332d1000c87 100644 --- a/resource-manager/security/2017-08-01-preview/advancedthreatprotection/README.md +++ b/resource-manager/security/2017-08-01-preview/advancedthreatprotection/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2017-08-01-preview/advancedthreatprotection" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := advancedthreatprotection.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := advancedthreatprotection.AdvancedThreatProtectionSetting{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := advancedthreatprotection.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/security/2017-08-01-preview/autoprovisioningsettings/README.md b/resource-manager/security/2017-08-01-preview/autoprovisioningsettings/README.md index bb93b052fff..1a2ed8c77a3 100644 --- a/resource-manager/security/2017-08-01-preview/autoprovisioningsettings/README.md +++ b/resource-manager/security/2017-08-01-preview/autoprovisioningsettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2017-08-01-preview/autoprovisioningsettings" ``` @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := autoprovisioningsettings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2017-08-01-preview/compliances/README.md b/resource-manager/security/2017-08-01-preview/compliances/README.md index a93f4f1cea9..cb278cfb645 100644 --- a/resource-manager/security/2017-08-01-preview/compliances/README.md +++ b/resource-manager/security/2017-08-01-preview/compliances/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2017-08-01-preview/compliances" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := compliances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2017-08-01-preview/devicesecuritygroups/README.md b/resource-manager/security/2017-08-01-preview/devicesecuritygroups/README.md index 16fc04c58e6..f2ff6f975f2 100644 --- a/resource-manager/security/2017-08-01-preview/devicesecuritygroups/README.md +++ b/resource-manager/security/2017-08-01-preview/devicesecuritygroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2017-08-01-preview/devicesecuritygroups" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := devicesecuritygroups.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2017-08-01-preview/informationprotectionpolicies/README.md b/resource-manager/security/2017-08-01-preview/informationprotectionpolicies/README.md index c47c8341e3c..2e8a9199b90 100644 --- a/resource-manager/security/2017-08-01-preview/informationprotectionpolicies/README.md +++ b/resource-manager/security/2017-08-01-preview/informationprotectionpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2017-08-01-preview/informationprotectionpolicies" ``` @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := informationprotectionpolicies.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2017-08-01-preview/iotsecuritysolutions/README.md b/resource-manager/security/2017-08-01-preview/iotsecuritysolutions/README.md index fa24b882368..469c295867b 100644 --- a/resource-manager/security/2017-08-01-preview/iotsecuritysolutions/README.md +++ b/resource-manager/security/2017-08-01-preview/iotsecuritysolutions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2017-08-01-preview/iotsecuritysolutions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := iotsecuritysolutions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.IoTSecuritySolutionsList(ctx, id, iotsecuritysolutions.DefaultIoTSecuritySolutionsListOperationOptions())` can be used to do batched pagination items, err := client.IoTSecuritySolutionsListComplete(ctx, id, iotsecuritysolutions.DefaultIoTSecuritySolutionsListOperationOptions()) @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := iotsecuritysolutions.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.IoTSecuritySolutionsResourceGroupList(ctx, id, iotsecuritysolutions.DefaultIoTSecuritySolutionsResourceGroupListOperationOptions())` can be used to do batched pagination items, err := client.IoTSecuritySolutionsResourceGroupListComplete(ctx, id, iotsecuritysolutions.DefaultIoTSecuritySolutionsResourceGroupListOperationOptions()) diff --git a/resource-manager/security/2017-08-01-preview/pricings/README.md b/resource-manager/security/2017-08-01-preview/pricings/README.md index ed4da734379..e7ccdcc24b3 100644 --- a/resource-manager/security/2017-08-01-preview/pricings/README.md +++ b/resource-manager/security/2017-08-01-preview/pricings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2017-08-01-preview/pricings" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := pricings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := pricings.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/security/2017-08-01-preview/securitycontacts/README.md b/resource-manager/security/2017-08-01-preview/securitycontacts/README.md index b1ae2c221ae..00e2980cdb7 100644 --- a/resource-manager/security/2017-08-01-preview/securitycontacts/README.md +++ b/resource-manager/security/2017-08-01-preview/securitycontacts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2017-08-01-preview/securitycontacts" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := securitycontacts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2017-08-01-preview/settings/README.md b/resource-manager/security/2017-08-01-preview/settings/README.md index 3945c7ea225..795d53dfc83 100644 --- a/resource-manager/security/2017-08-01-preview/settings/README.md +++ b/resource-manager/security/2017-08-01-preview/settings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2017-08-01-preview/settings" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := settings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2017-08-01-preview/workspacesettings/README.md b/resource-manager/security/2017-08-01-preview/workspacesettings/README.md index 9667e20ec97..eb65374c9f0 100644 --- a/resource-manager/security/2017-08-01-preview/workspacesettings/README.md +++ b/resource-manager/security/2017-08-01-preview/workspacesettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2017-08-01-preview/workspacesettings" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspacesettings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2019-01-01-preview/alertssuppressionrules/README.md b/resource-manager/security/2019-01-01-preview/alertssuppressionrules/README.md index 6ff1ff96bd1..3c1da8f8fa1 100644 --- a/resource-manager/security/2019-01-01-preview/alertssuppressionrules/README.md +++ b/resource-manager/security/2019-01-01-preview/alertssuppressionrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/alertssuppressionrules" ``` @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alertssuppressionrules.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, alertssuppressionrules.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, alertssuppressionrules.DefaultListOperationOptions()) diff --git a/resource-manager/security/2019-01-01-preview/assessments/README.md b/resource-manager/security/2019-01-01-preview/assessments/README.md index d7120b2ce3f..e6d15b9be9c 100644 --- a/resource-manager/security/2019-01-01-preview/assessments/README.md +++ b/resource-manager/security/2019-01-01-preview/assessments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/assessments" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := assessments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2019-01-01-preview/assessmentsmetadata/README.md b/resource-manager/security/2019-01-01-preview/assessmentsmetadata/README.md index 98dabab333e..466fe377f44 100644 --- a/resource-manager/security/2019-01-01-preview/assessmentsmetadata/README.md +++ b/resource-manager/security/2019-01-01-preview/assessmentsmetadata/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/assessmentsmetadata" ``` @@ -110,7 +111,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := assessmentsmetadata.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.SubscriptionList(ctx, id)` can be used to do batched pagination items, err := client.SubscriptionListComplete(ctx, id) diff --git a/resource-manager/security/2019-01-01-preview/automations/README.md b/resource-manager/security/2019-01-01-preview/automations/README.md index 66e2727960c..a7a2c827f6e 100644 --- a/resource-manager/security/2019-01-01-preview/automations/README.md +++ b/resource-manager/security/2019-01-01-preview/automations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := automations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/security/2019-01-01-preview/regulatorycompliance/README.md b/resource-manager/security/2019-01-01-preview/regulatorycompliance/README.md index 171e787019e..9f879b41cb0 100644 --- a/resource-manager/security/2019-01-01-preview/regulatorycompliance/README.md +++ b/resource-manager/security/2019-01-01-preview/regulatorycompliance/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/regulatorycompliance" ``` @@ -106,7 +107,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := regulatorycompliance.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.StandardsList(ctx, id, regulatorycompliance.DefaultStandardsListOperationOptions())` can be used to do batched pagination items, err := client.StandardsListComplete(ctx, id, regulatorycompliance.DefaultStandardsListOperationOptions()) diff --git a/resource-manager/security/2019-01-01-preview/subassessments/README.md b/resource-manager/security/2019-01-01-preview/subassessments/README.md index 8bffc096878..74d70392cdd 100644 --- a/resource-manager/security/2019-01-01-preview/subassessments/README.md +++ b/resource-manager/security/2019-01-01-preview/subassessments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/subassessments" ``` @@ -57,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := subassessments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListAll(ctx, id)` can be used to do batched pagination items, err := client.ListAllComplete(ctx, id) diff --git a/resource-manager/security/2019-01-01/advancedthreatprotection/README.md b/resource-manager/security/2019-01-01/advancedthreatprotection/README.md index b3070dba87e..b8869d167f1 100644 --- a/resource-manager/security/2019-01-01/advancedthreatprotection/README.md +++ b/resource-manager/security/2019-01-01/advancedthreatprotection/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01/advancedthreatprotection" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := advancedthreatprotection.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := advancedthreatprotection.AdvancedThreatProtectionSetting{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := advancedthreatprotection.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/security/2019-01-01/alerts/README.md b/resource-manager/security/2019-01-01/alerts/README.md index 07df4a20ec5..c350fab07a8 100644 --- a/resource-manager/security/2019-01-01/alerts/README.md +++ b/resource-manager/security/2019-01-01/alerts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01/alerts" ``` @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alerts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, alerts.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, alerts.DefaultListOperationOptions()) @@ -73,7 +74,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := alerts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, alerts.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, alerts.DefaultListByResourceGroupOperationOptions()) diff --git a/resource-manager/security/2019-01-01/settings/README.md b/resource-manager/security/2019-01-01/settings/README.md index 1dba4872512..f9f35ba429f 100644 --- a/resource-manager/security/2019-01-01/settings/README.md +++ b/resource-manager/security/2019-01-01/settings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01/settings" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := settings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2020-01-01/adaptivenetworkhardenings/README.md b/resource-manager/security/2020-01-01/adaptivenetworkhardenings/README.md index 65bb18c2e1b..9451ed2d11f 100644 --- a/resource-manager/security/2020-01-01/adaptivenetworkhardenings/README.md +++ b/resource-manager/security/2020-01-01/adaptivenetworkhardenings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/adaptivenetworkhardenings" ``` @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := adaptivenetworkhardenings.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.ListByExtendedResource(ctx, id)` can be used to do batched pagination items, err := client.ListByExtendedResourceComplete(ctx, id) diff --git a/resource-manager/security/2020-01-01/alerts/README.md b/resource-manager/security/2020-01-01/alerts/README.md index d1efdcbd1a9..21bc9714a90 100644 --- a/resource-manager/security/2020-01-01/alerts/README.md +++ b/resource-manager/security/2020-01-01/alerts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/alerts" ``` @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alerts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -73,7 +74,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := alerts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/security/2020-01-01/allowedconnections/README.md b/resource-manager/security/2020-01-01/allowedconnections/README.md index 10507f19a12..f6ee1cee604 100644 --- a/resource-manager/security/2020-01-01/allowedconnections/README.md +++ b/resource-manager/security/2020-01-01/allowedconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/allowedconnections" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := allowedconnections.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2020-01-01/applicationwhitelistings/README.md b/resource-manager/security/2020-01-01/applicationwhitelistings/README.md index 7666f45dea9..82066250379 100644 --- a/resource-manager/security/2020-01-01/applicationwhitelistings/README.md +++ b/resource-manager/security/2020-01-01/applicationwhitelistings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/applicationwhitelistings" ``` @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationwhitelistings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.AdaptiveApplicationControlsList(ctx, id, applicationwhitelistings.DefaultAdaptiveApplicationControlsListOperationOptions()) if err != nil { diff --git a/resource-manager/security/2020-01-01/assessments/README.md b/resource-manager/security/2020-01-01/assessments/README.md index 2a0827545b3..7dfbfc0a215 100644 --- a/resource-manager/security/2020-01-01/assessments/README.md +++ b/resource-manager/security/2020-01-01/assessments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/assessments" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := assessments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2020-01-01/assessmentsmetadata/README.md b/resource-manager/security/2020-01-01/assessmentsmetadata/README.md index fe0c185a3db..4abe5908db0 100644 --- a/resource-manager/security/2020-01-01/assessmentsmetadata/README.md +++ b/resource-manager/security/2020-01-01/assessmentsmetadata/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/assessmentsmetadata" ``` @@ -110,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := assessmentsmetadata.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/security/2020-01-01/discoveredsecuritysolutions/README.md b/resource-manager/security/2020-01-01/discoveredsecuritysolutions/README.md index bbfc381b3e5..aa2c98254d2 100644 --- a/resource-manager/security/2020-01-01/discoveredsecuritysolutions/README.md +++ b/resource-manager/security/2020-01-01/discoveredsecuritysolutions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/discoveredsecuritysolutions" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := discoveredsecuritysolutions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2020-01-01/externalsecuritysolutions/README.md b/resource-manager/security/2020-01-01/externalsecuritysolutions/README.md index 8909826dc03..105679dd459 100644 --- a/resource-manager/security/2020-01-01/externalsecuritysolutions/README.md +++ b/resource-manager/security/2020-01-01/externalsecuritysolutions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/externalsecuritysolutions" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := externalsecuritysolutions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/README.md b/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/README.md index 54eaa236daf..b901f188d58 100644 --- a/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/README.md +++ b/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/jitnetworkaccesspolicies" ``` @@ -98,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jitnetworkaccesspolicies.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -132,7 +133,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := jitnetworkaccesspolicies.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/security/2020-01-01/securescore/README.md b/resource-manager/security/2020-01-01/securescore/README.md index d1cd63ceb16..cbd9cd7e64f 100644 --- a/resource-manager/security/2020-01-01/securescore/README.md +++ b/resource-manager/security/2020-01-01/securescore/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/securescore" ``` @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := securescore.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2020-01-01/securescorecontroldefinitions/README.md b/resource-manager/security/2020-01-01/securescorecontroldefinitions/README.md index 63eb56641a6..8fea7d1e61c 100644 --- a/resource-manager/security/2020-01-01/securescorecontroldefinitions/README.md +++ b/resource-manager/security/2020-01-01/securescorecontroldefinitions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/securescorecontroldefinitions" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := securescorecontroldefinitions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/security/2020-01-01/securescorecontrols/README.md b/resource-manager/security/2020-01-01/securescorecontrols/README.md index b80ca405c7c..c0c5bbe3d69 100644 --- a/resource-manager/security/2020-01-01/securescorecontrols/README.md +++ b/resource-manager/security/2020-01-01/securescorecontrols/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/securescorecontrols" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := securescorecontrols.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, securescorecontrols.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, securescorecontrols.DefaultListOperationOptions()) diff --git a/resource-manager/security/2020-01-01/securitysolutions/README.md b/resource-manager/security/2020-01-01/securitysolutions/README.md index 6abdde37e0b..cf9bd897b57 100644 --- a/resource-manager/security/2020-01-01/securitysolutions/README.md +++ b/resource-manager/security/2020-01-01/securitysolutions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/securitysolutions" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := securitysolutions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2020-01-01/securitysolutionsreferencedata/README.md b/resource-manager/security/2020-01-01/securitysolutionsreferencedata/README.md index 17495d65489..9bd49d4261c 100644 --- a/resource-manager/security/2020-01-01/securitysolutionsreferencedata/README.md +++ b/resource-manager/security/2020-01-01/securitysolutionsreferencedata/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/securitysolutionsreferencedata" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := securitysolutionsreferencedata.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/security/2020-01-01/servervulnerabilityassessment/README.md b/resource-manager/security/2020-01-01/servervulnerabilityassessment/README.md index c38d5c881dc..cc3660c89e7 100644 --- a/resource-manager/security/2020-01-01/servervulnerabilityassessment/README.md +++ b/resource-manager/security/2020-01-01/servervulnerabilityassessment/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/servervulnerabilityassessment" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servervulnerabilityassessment.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.CreateOrUpdate(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servervulnerabilityassessment.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error diff --git a/resource-manager/security/2020-01-01/servervulnerabilityassessments/README.md b/resource-manager/security/2020-01-01/servervulnerabilityassessments/README.md index 4ab4604182d..b11e67bc41f 100644 --- a/resource-manager/security/2020-01-01/servervulnerabilityassessments/README.md +++ b/resource-manager/security/2020-01-01/servervulnerabilityassessments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/servervulnerabilityassessments" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servervulnerabilityassessments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.ServerVulnerabilityAssessmentGet(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servervulnerabilityassessments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.ServerVulnerabilityAssessmentListByExtendedResource(ctx, id) if err != nil { diff --git a/resource-manager/security/2020-01-01/topology/README.md b/resource-manager/security/2020-01-01/topology/README.md index 274a7565fb7..0ca9aefc0ca 100644 --- a/resource-manager/security/2020-01-01/topology/README.md +++ b/resource-manager/security/2020-01-01/topology/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/topology" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := topology.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2021-06-01/assessments/README.md b/resource-manager/security/2021-06-01/assessments/README.md index 0c0dcbbe734..b84bac74e63 100644 --- a/resource-manager/security/2021-06-01/assessments/README.md +++ b/resource-manager/security/2021-06-01/assessments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessments" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := assessments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2021-06-01/assessmentsmetadata/README.md b/resource-manager/security/2021-06-01/assessmentsmetadata/README.md index 369e16f9200..f3ce63933c6 100644 --- a/resource-manager/security/2021-06-01/assessmentsmetadata/README.md +++ b/resource-manager/security/2021-06-01/assessmentsmetadata/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata" ``` @@ -110,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := assessmentsmetadata.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/security/2021-06-01/settings/README.md b/resource-manager/security/2021-06-01/settings/README.md index 3f1be19a75d..215fe327395 100644 --- a/resource-manager/security/2021-06-01/settings/README.md +++ b/resource-manager/security/2021-06-01/settings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/settings" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := settings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2022-03-01/pricings/README.md b/resource-manager/security/2022-03-01/pricings/README.md index 042bb509da4..9607e261007 100644 --- a/resource-manager/security/2022-03-01/pricings/README.md +++ b/resource-manager/security/2022-03-01/pricings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-03-01/pricings" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := pricings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/security/2022-05-01/settings/README.md b/resource-manager/security/2022-05-01/settings/README.md index 09c32d0f421..b4f91326ce5 100644 --- a/resource-manager/security/2022-05-01/settings/README.md +++ b/resource-manager/security/2022-05-01/settings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := settings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/security/2022-12-01-preview/defenderforstorage/README.md b/resource-manager/security/2022-12-01-preview/defenderforstorage/README.md index 9a10ae2a6b5..b72ec1bbdc2 100644 --- a/resource-manager/security/2022-12-01-preview/defenderforstorage/README.md +++ b/resource-manager/security/2022-12-01-preview/defenderforstorage/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := defenderforstorage.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := defenderforstorage.DefenderForStorageSetting{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := defenderforstorage.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/security/2023-01-01/pricings/README.md b/resource-manager/security/2023-01-01/pricings/README.md index 3ab401fe93b..387e330bac4 100644 --- a/resource-manager/security/2023-01-01/pricings/README.md +++ b/resource-manager/security/2023-01-01/pricings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := pricings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/README.md b/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/README.md index a4c6cce6649..463e4732e09 100644 --- a/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/README.md +++ b/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servervulnerabilityassessmentssettings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := servervulnerabilityassessmentssettings.ServerVulnerabilityAssessmentsSetting{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servervulnerabilityassessmentssettings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servervulnerabilityassessmentssettings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servervulnerabilityassessmentssettings.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/security/2023-11-15/d4apicollectionlist/README.md b/resource-manager/security/2023-11-15/d4apicollectionlist/README.md index 5cc55583e68..e74801a65fb 100644 --- a/resource-manager/security/2023-11-15/d4apicollectionlist/README.md +++ b/resource-manager/security/2023-11-15/d4apicollectionlist/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-11-15/d4apicollectionlist" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := d4apicollectionlist.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.APICollectionsListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.APICollectionsListByResourceGroupComplete(ctx, id) @@ -58,7 +59,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := d4apicollectionlist.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.APICollectionsListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.APICollectionsListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/securityinsights/2021-09-01-preview/enrichment/README.md b/resource-manager/securityinsights/2021-09-01-preview/enrichment/README.md index 90f9befaeab..ecd59eebdf4 100644 --- a/resource-manager/securityinsights/2021-09-01-preview/enrichment/README.md +++ b/resource-manager/securityinsights/2021-09-01-preview/enrichment/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2021-09-01-preview/enrichment" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := enrichment.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.DomainWhoisGet(ctx, id, enrichment.DefaultDomainWhoisGetOperationOptions()) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := enrichment.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.IPGeodataGet(ctx, id, enrichment.DefaultIPGeodataGetOperationOptions()) if err != nil { diff --git a/resource-manager/securityinsights/2022-07-01-preview/enrichment/README.md b/resource-manager/securityinsights/2022-07-01-preview/enrichment/README.md index ad719c3081e..95118d67e3b 100644 --- a/resource-manager/securityinsights/2022-07-01-preview/enrichment/README.md +++ b/resource-manager/securityinsights/2022-07-01-preview/enrichment/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-07-01-preview/enrichment" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := enrichment.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.DomainWhoisGet(ctx, id, enrichment.DefaultDomainWhoisGetOperationOptions()) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := enrichment.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.IPGeodataGet(ctx, id, enrichment.DefaultIPGeodataGetOperationOptions()) if err != nil { diff --git a/resource-manager/securityinsights/2022-10-01-preview/enrichment/README.md b/resource-manager/securityinsights/2022-10-01-preview/enrichment/README.md index bb70349825c..7b18d385fa4 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/enrichment/README.md +++ b/resource-manager/securityinsights/2022-10-01-preview/enrichment/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/enrichment" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := enrichment.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.DomainWhoisGet(ctx, id, enrichment.DefaultDomainWhoisGetOperationOptions()) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := enrichment.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.IPGeodataGet(ctx, id, enrichment.DefaultIPGeodataGetOperationOptions()) if err != nil { diff --git a/resource-manager/servicebus/2021-06-01-preview/namespaces/README.md b/resource-manager/servicebus/2021-06-01-preview/namespaces/README.md index 9f7abbbb6d4..fcca3b9adb4 100644 --- a/resource-manager/servicebus/2021-06-01-preview/namespaces/README.md +++ b/resource-manager/servicebus/2021-06-01-preview/namespaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := namespaces.CheckNameAvailability{ // ... @@ -127,7 +128,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -144,7 +145,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/servicebus/2021-11-01/namespaces/README.md b/resource-manager/servicebus/2021-11-01/namespaces/README.md index 281da86cf72..ac61ea84879 100644 --- a/resource-manager/servicebus/2021-11-01/namespaces/README.md +++ b/resource-manager/servicebus/2021-11-01/namespaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-11-01/namespaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := namespaces.CheckNameAvailability{ // ... @@ -127,7 +128,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -144,7 +145,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/servicebus/2022-01-01-preview/namespaces/README.md b/resource-manager/servicebus/2022-01-01-preview/namespaces/README.md index 1a012cbe44e..1b6d50704bb 100644 --- a/resource-manager/servicebus/2022-01-01-preview/namespaces/README.md +++ b/resource-manager/servicebus/2022-01-01-preview/namespaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-01-01-preview/namespaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := namespaces.CheckNameAvailability{ // ... @@ -127,7 +128,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -144,7 +145,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/servicebus/2022-10-01-preview/namespaces/README.md b/resource-manager/servicebus/2022-10-01-preview/namespaces/README.md index 04ab3deb77a..2858d698d86 100644 --- a/resource-manager/servicebus/2022-10-01-preview/namespaces/README.md +++ b/resource-manager/servicebus/2022-10-01-preview/namespaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := namespaces.CheckNameAvailability{ // ... @@ -127,7 +128,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -144,7 +145,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/servicefabric/2021-06-01/cluster/README.md b/resource-manager/servicefabric/2021-06-01/cluster/README.md index 2e0d0d4534c..04c87dd2753 100644 --- a/resource-manager/servicefabric/2021-06-01/cluster/README.md +++ b/resource-manager/servicefabric/2021-06-01/cluster/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cluster.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := cluster.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/README.md b/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/README.md index 1f12cc31137..93cd824ff2a 100644 --- a/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/README.md +++ b/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedcluster.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedcluster.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/servicefabricmanagedcluster/2022-01-01/managedcluster/README.md b/resource-manager/servicefabricmanagedcluster/2022-01-01/managedcluster/README.md index 5236ed0102b..f1f2abe1b40 100644 --- a/resource-manager/servicefabricmanagedcluster/2022-01-01/managedcluster/README.md +++ b/resource-manager/servicefabricmanagedcluster/2022-01-01/managedcluster/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2022-01-01/managedcluster" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedcluster.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedcluster.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/servicelinker/2022-05-01/servicelinker/README.md b/resource-manager/servicelinker/2022-05-01/servicelinker/README.md index d26ca80c617..b5c91c7931f 100644 --- a/resource-manager/servicelinker/2022-05-01/servicelinker/README.md +++ b/resource-manager/servicelinker/2022-05-01/servicelinker/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/servicelinker" ``` @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servicelinker.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.LinkerList(ctx, id)` can be used to do batched pagination items, err := client.LinkerListComplete(ctx, id) diff --git a/resource-manager/servicenetworking/2023-05-01-preview/trafficcontrollerinterface/README.md b/resource-manager/servicenetworking/2023-05-01-preview/trafficcontrollerinterface/README.md index c14f625e3a6..1aa475d6c4d 100644 --- a/resource-manager/servicenetworking/2023-05-01-preview/trafficcontrollerinterface/README.md +++ b/resource-manager/servicenetworking/2023-05-01-preview/trafficcontrollerinterface/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-05-01-preview/trafficcontrollerinterface" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := trafficcontrollerinterface.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := trafficcontrollerinterface.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/README.md b/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/README.md index 07c0a2194b0..c85867edcbf 100644 --- a/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/README.md +++ b/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := trafficcontrollerinterface.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := trafficcontrollerinterface.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/signalr/2023-02-01/signalr/README.md b/resource-manager/signalr/2023-02-01/signalr/README.md index 3462686063d..12f1c821ce3 100644 --- a/resource-manager/signalr/2023-02-01/signalr/README.md +++ b/resource-manager/signalr/2023-02-01/signalr/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr" ``` @@ -218,7 +219,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := signalr.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -235,7 +236,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := signalr.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/backupshorttermretentionpolicies/README.md b/resource-manager/sql/2023-02-01-preview/backupshorttermretentionpolicies/README.md index b2265fdd54c..9e984f38753 100644 --- a/resource-manager/sql/2023-02-01-preview/backupshorttermretentionpolicies/README.md +++ b/resource-manager/sql/2023-02-01-preview/backupshorttermretentionpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/backupshorttermretentionpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := backupshorttermretentionpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := backupshorttermretentionpolicies.BackupShortTermRetentionPolicy{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := backupshorttermretentionpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backupshorttermretentionpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) @@ -74,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := backupshorttermretentionpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := backupshorttermretentionpolicies.BackupShortTermRetentionPolicy{ // ... diff --git a/resource-manager/sql/2023-02-01-preview/blobauditing/README.md b/resource-manager/sql/2023-02-01-preview/blobauditing/README.md index b210e8c3244..4ac179a29b8 100644 --- a/resource-manager/sql/2023-02-01-preview/blobauditing/README.md +++ b/resource-manager/sql/2023-02-01-preview/blobauditing/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/blobauditing" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := blobauditing.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := blobauditing.DatabaseBlobAuditingPolicy{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobauditing.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.DatabaseBlobAuditingPoliciesGet(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobauditing.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.DatabaseBlobAuditingPoliciesListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.DatabaseBlobAuditingPoliciesListByDatabaseComplete(ctx, id) @@ -78,7 +79,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := blobauditing.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := blobauditing.ExtendedDatabaseBlobAuditingPolicy{ // ... @@ -99,7 +100,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobauditing.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.ExtendedDatabaseBlobAuditingPoliciesGet(ctx, id) if err != nil { @@ -115,7 +116,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobauditing.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ExtendedDatabaseBlobAuditingPoliciesListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ExtendedDatabaseBlobAuditingPoliciesListByDatabaseComplete(ctx, id) @@ -132,7 +133,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := blobauditing.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := blobauditing.ExtendedServerBlobAuditingPolicy{ // ... @@ -149,7 +150,7 @@ if err := client.ExtendedServerBlobAuditingPoliciesCreateOrUpdateThenPoll(ctx, i ```go ctx := context.TODO() -id := blobauditing.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.ExtendedServerBlobAuditingPoliciesGet(ctx, id) if err != nil { @@ -165,7 +166,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobauditing.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ExtendedServerBlobAuditingPoliciesListByServer(ctx, id)` can be used to do batched pagination items, err := client.ExtendedServerBlobAuditingPoliciesListByServerComplete(ctx, id) @@ -182,7 +183,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := blobauditing.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := blobauditing.ServerBlobAuditingPolicy{ // ... @@ -199,7 +200,7 @@ if err := client.ServerBlobAuditingPoliciesCreateOrUpdateThenPoll(ctx, id, paylo ```go ctx := context.TODO() -id := blobauditing.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.ServerBlobAuditingPoliciesGet(ctx, id) if err != nil { @@ -215,7 +216,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobauditing.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ServerBlobAuditingPoliciesListByServer(ctx, id)` can be used to do batched pagination items, err := client.ServerBlobAuditingPoliciesListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/databaseadvancedthreatprotectionsettings/README.md b/resource-manager/sql/2023-02-01-preview/databaseadvancedthreatprotectionsettings/README.md index 735886f2ab9..faa01e61d61 100644 --- a/resource-manager/sql/2023-02-01-preview/databaseadvancedthreatprotectionsettings/README.md +++ b/resource-manager/sql/2023-02-01-preview/databaseadvancedthreatprotectionsettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databaseadvancedthreatprotectionsettings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databaseadvancedthreatprotectionsettings.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databaseadvancedthreatprotectionsettings.DatabaseAdvancedThreatProtection{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databaseadvancedthreatprotectionsettings.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databaseadvancedthreatprotectionsettings.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/databaseadvisors/README.md b/resource-manager/sql/2023-02-01-preview/databaseadvisors/README.md index f901e318a90..805bebf48f7 100644 --- a/resource-manager/sql/2023-02-01-preview/databaseadvisors/README.md +++ b/resource-manager/sql/2023-02-01-preview/databaseadvisors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databaseadvisors" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databaseadvisors.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.ListByDatabase(ctx, id, databaseadvisors.DefaultListByDatabaseOperationOptions()) if err != nil { diff --git a/resource-manager/sql/2023-02-01-preview/databaseautomatictuning/README.md b/resource-manager/sql/2023-02-01-preview/databaseautomatictuning/README.md index a7d8e4dc3d6..91098f62c04 100644 --- a/resource-manager/sql/2023-02-01-preview/databaseautomatictuning/README.md +++ b/resource-manager/sql/2023-02-01-preview/databaseautomatictuning/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databaseautomatictuning" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databaseautomatictuning.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databaseautomatictuning.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databaseautomatictuning.DatabaseAutomaticTuning{ // ... diff --git a/resource-manager/sql/2023-02-01-preview/databasecolumns/README.md b/resource-manager/sql/2023-02-01-preview/databasecolumns/README.md index 8d9e32496da..dbddf41a666 100644 --- a/resource-manager/sql/2023-02-01-preview/databasecolumns/README.md +++ b/resource-manager/sql/2023-02-01-preview/databasecolumns/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databasecolumns" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasecolumns.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id, databasecolumns.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id, databasecolumns.DefaultListByDatabaseOperationOptions()) diff --git a/resource-manager/sql/2023-02-01-preview/databaseextensions/README.md b/resource-manager/sql/2023-02-01-preview/databaseextensions/README.md index 3949398c194..6c68cfdf035 100644 --- a/resource-manager/sql/2023-02-01-preview/databaseextensions/README.md +++ b/resource-manager/sql/2023-02-01-preview/databaseextensions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databaseextensions" ``` @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databaseextensions.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/databaseoperations/README.md b/resource-manager/sql/2023-02-01-preview/databaseoperations/README.md index 07ac89794e0..a7fa8d9b7bd 100644 --- a/resource-manager/sql/2023-02-01-preview/databaseoperations/README.md +++ b/resource-manager/sql/2023-02-01-preview/databaseoperations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databaseoperations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databaseoperations.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/databases/README.md b/resource-manager/sql/2023-02-01-preview/databases/README.md index 51f5c956b48..4c95f4f615a 100644 --- a/resource-manager/sql/2023-02-01-preview/databases/README.md +++ b/resource-manager/sql/2023-02-01-preview/databases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databases" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databases.Database{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databases.ExportDatabaseDefinition{ // ... @@ -70,7 +71,7 @@ if err := client.ExportThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") if err := client.FailoverThenPoll(ctx, id, databases.DefaultFailoverOperationOptions()); err != nil { // handle the error @@ -82,7 +83,7 @@ if err := client.FailoverThenPoll(ctx, id, databases.DefaultFailoverOperationOpt ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id, databases.DefaultGetOperationOptions()) if err != nil { @@ -98,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databases.ImportExistingDatabaseDefinition{ // ... @@ -115,7 +116,7 @@ if err := client.ImportThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") // alternatively `client.ListByElasticPool(ctx, id)` can be used to do batched pagination items, err := client.ListByElasticPoolComplete(ctx, id) @@ -132,7 +133,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := databases.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -149,7 +150,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := databases.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListInaccessibleByServer(ctx, id)` can be used to do batched pagination items, err := client.ListInaccessibleByServerComplete(ctx, id) @@ -166,7 +167,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") if err := client.PauseThenPoll(ctx, id); err != nil { // handle the error @@ -178,7 +179,7 @@ if err := client.PauseThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databases.ResourceMoveDefinition{ // ... @@ -199,7 +200,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") if err := client.ResumeThenPoll(ctx, id); err != nil { // handle the error @@ -211,7 +212,7 @@ if err := client.ResumeThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databases.DatabaseUpdate{ // ... @@ -228,7 +229,7 @@ if err := client.UpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") if err := client.UpgradeDataWarehouseThenPoll(ctx, id); err != nil { // handle the error diff --git a/resource-manager/sql/2023-02-01-preview/databaseschemas/README.md b/resource-manager/sql/2023-02-01-preview/databaseschemas/README.md index 8d96df2086c..a9516048d3f 100644 --- a/resource-manager/sql/2023-02-01-preview/databaseschemas/README.md +++ b/resource-manager/sql/2023-02-01-preview/databaseschemas/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databaseschemas" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databaseschemas.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id, databaseschemas.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id, databaseschemas.DefaultListByDatabaseOperationOptions()) diff --git a/resource-manager/sql/2023-02-01-preview/databasesecurityalertpolicies/README.md b/resource-manager/sql/2023-02-01-preview/databasesecurityalertpolicies/README.md index 2ee35d4a940..f3146b2d25f 100644 --- a/resource-manager/sql/2023-02-01-preview/databasesecurityalertpolicies/README.md +++ b/resource-manager/sql/2023-02-01-preview/databasesecurityalertpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databasesecurityalertpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databasesecurityalertpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databasesecurityalertpolicies.DatabaseSecurityAlertPolicy{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasesecurityalertpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasesecurityalertpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentbaselines/README.md b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentbaselines/README.md index 04db9a0c459..aa6f41be032 100644 --- a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentbaselines/README.md +++ b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentbaselines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentbaselines" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databasesqlvulnerabilityassessmentbaselines.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databasesqlvulnerabilityassessmentbaselines.DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasesqlvulnerabilityassessmentbaselines.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasesqlvulnerabilityassessmentbaselines.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListBySqlVulnerabilityAssessment(ctx, id)` can be used to do batched pagination items, err := client.ListBySqlVulnerabilityAssessmentComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentrulebaselines/README.md b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentrulebaselines/README.md index 2c741209cd8..677def5b4a0 100644 --- a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentrulebaselines/README.md +++ b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentrulebaselines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentrulebaselines" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasesqlvulnerabilityassessmentrulebaselines.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByBaseline(ctx, id)` can be used to do batched pagination items, err := client.ListByBaselineComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentscans/README.md b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentscans/README.md index 1e6674a475d..0865f3f77a2 100644 --- a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentscans/README.md +++ b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentscans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentscans" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasesqlvulnerabilityassessmentscans.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListBySqlVulnerabilityAssessments(ctx, id)` can be used to do batched pagination items, err := client.ListBySqlVulnerabilityAssessmentsComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentssettings/README.md b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentssettings/README.md index 1676d9e6ae5..ac381a36dcf 100644 --- a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentssettings/README.md +++ b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentssettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentssettings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databasesqlvulnerabilityassessmentssettings.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasesqlvulnerabilityassessmentssettings.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/databaseusages/README.md b/resource-manager/sql/2023-02-01-preview/databaseusages/README.md index 94ebe4cd77d..7e93fb4b116 100644 --- a/resource-manager/sql/2023-02-01-preview/databaseusages/README.md +++ b/resource-manager/sql/2023-02-01-preview/databaseusages/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databaseusages" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databaseusages.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessments/README.md b/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessments/README.md index 63c36802a13..102e49cad28 100644 --- a/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessments/README.md +++ b/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessments" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databasevulnerabilityassessments.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databasevulnerabilityassessments.DatabaseVulnerabilityAssessment{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasevulnerabilityassessments.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasevulnerabilityassessments.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasevulnerabilityassessments.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessmentscans/README.md b/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessmentscans/README.md index b9a13b2658f..41110b1b58d 100644 --- a/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessmentscans/README.md +++ b/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessmentscans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessmentscans" ``` @@ -68,7 +69,7 @@ if err := client.InitiateScanThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := databasevulnerabilityassessmentscans.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/datamaskingpolicies/README.md b/resource-manager/sql/2023-02-01-preview/datamaskingpolicies/README.md index 0338014bbd5..ae0c4bae2e6 100644 --- a/resource-manager/sql/2023-02-01-preview/datamaskingpolicies/README.md +++ b/resource-manager/sql/2023-02-01-preview/datamaskingpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/datamaskingpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := datamaskingpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := datamaskingpolicies.DataMaskingPolicy{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datamaskingpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/sql/2023-02-01-preview/datamaskingrules/README.md b/resource-manager/sql/2023-02-01-preview/datamaskingrules/README.md index a08f5a42c73..e5f63b7fde6 100644 --- a/resource-manager/sql/2023-02-01-preview/datamaskingrules/README.md +++ b/resource-manager/sql/2023-02-01-preview/datamaskingrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/datamaskingrules" ``` @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datamaskingrules.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/datawarehouseuseractivities/README.md b/resource-manager/sql/2023-02-01-preview/datawarehouseuseractivities/README.md index 88e32f3e0da..b7af36aeac9 100644 --- a/resource-manager/sql/2023-02-01-preview/datawarehouseuseractivities/README.md +++ b/resource-manager/sql/2023-02-01-preview/datawarehouseuseractivities/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/datawarehouseuseractivities" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := datawarehouseuseractivities.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datawarehouseuseractivities.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/deletedservers/README.md b/resource-manager/sql/2023-02-01-preview/deletedservers/README.md index d4456ac9922..517c1e1035e 100644 --- a/resource-manager/sql/2023-02-01-preview/deletedservers/README.md +++ b/resource-manager/sql/2023-02-01-preview/deletedservers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/deletedservers" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deletedservers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/distributedavailabilitygroups/README.md b/resource-manager/sql/2023-02-01-preview/distributedavailabilitygroups/README.md index c44cf48222c..10d41a7abd3 100644 --- a/resource-manager/sql/2023-02-01-preview/distributedavailabilitygroups/README.md +++ b/resource-manager/sql/2023-02-01-preview/distributedavailabilitygroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/distributedavailabilitygroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := distributedavailabilitygroups.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/elasticpooloperations/README.md b/resource-manager/sql/2023-02-01-preview/elasticpooloperations/README.md index a40ec05d082..4a590598bcd 100644 --- a/resource-manager/sql/2023-02-01-preview/elasticpooloperations/README.md +++ b/resource-manager/sql/2023-02-01-preview/elasticpooloperations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/elasticpooloperations" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := elasticpooloperations.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") // alternatively `client.ListByElasticPool(ctx, id)` can be used to do batched pagination items, err := client.ListByElasticPoolComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/elasticpools/README.md b/resource-manager/sql/2023-02-01-preview/elasticpools/README.md index 504598117f0..2c36ef933c9 100644 --- a/resource-manager/sql/2023-02-01-preview/elasticpools/README.md +++ b/resource-manager/sql/2023-02-01-preview/elasticpools/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/elasticpools" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := elasticpools.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") payload := elasticpools.ElasticPool{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := elasticpools.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := elasticpools.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") if err := client.FailoverThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +66,7 @@ if err := client.FailoverThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := elasticpools.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") read, err := client.Get(ctx, id) if err != nil { @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := elasticpools.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id, elasticpools.DefaultListByServerOperationOptions())` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id, elasticpools.DefaultListByServerOperationOptions()) @@ -98,7 +99,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := elasticpools.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") payload := elasticpools.ElasticPoolUpdate{ // ... diff --git a/resource-manager/sql/2023-02-01-preview/encryptionprotectors/README.md b/resource-manager/sql/2023-02-01-preview/encryptionprotectors/README.md index b9c98353542..b5d3a419e29 100644 --- a/resource-manager/sql/2023-02-01-preview/encryptionprotectors/README.md +++ b/resource-manager/sql/2023-02-01-preview/encryptionprotectors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/encryptionprotectors" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := encryptionprotectors.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := encryptionprotectors.EncryptionProtector{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := encryptionprotectors.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := encryptionprotectors.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -74,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := encryptionprotectors.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") if err := client.RevalidateThenPoll(ctx, id); err != nil { // handle the error diff --git a/resource-manager/sql/2023-02-01-preview/endpointcertificates/README.md b/resource-manager/sql/2023-02-01-preview/endpointcertificates/README.md index 8011ad63c79..002735de7aa 100644 --- a/resource-manager/sql/2023-02-01-preview/endpointcertificates/README.md +++ b/resource-manager/sql/2023-02-01-preview/endpointcertificates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/endpointcertificates" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := endpointcertificates.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/failovergroups/README.md b/resource-manager/sql/2023-02-01-preview/failovergroups/README.md index 63fdd43c20e..d37a4adcd7e 100644 --- a/resource-manager/sql/2023-02-01-preview/failovergroups/README.md +++ b/resource-manager/sql/2023-02-01-preview/failovergroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/failovergroups" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := failovergroups.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/firewallrules/README.md b/resource-manager/sql/2023-02-01-preview/firewallrules/README.md index 1107feee126..5a2d8d1ebc0 100644 --- a/resource-manager/sql/2023-02-01-preview/firewallrules/README.md +++ b/resource-manager/sql/2023-02-01-preview/firewallrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/firewallrules" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallrules.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := firewallrules.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := firewallrules.FirewallRuleList{ // ... diff --git a/resource-manager/sql/2023-02-01-preview/geobackuppolicies/README.md b/resource-manager/sql/2023-02-01-preview/geobackuppolicies/README.md index 506479db26f..a47f21b56f7 100644 --- a/resource-manager/sql/2023-02-01-preview/geobackuppolicies/README.md +++ b/resource-manager/sql/2023-02-01-preview/geobackuppolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/geobackuppolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := geobackuppolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := geobackuppolicies.GeoBackupPolicy{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := geobackuppolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := geobackuppolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/instancepools/README.md b/resource-manager/sql/2023-02-01-preview/instancepools/README.md index 8bc876ff924..e16dae5639d 100644 --- a/resource-manager/sql/2023-02-01-preview/instancepools/README.md +++ b/resource-manager/sql/2023-02-01-preview/instancepools/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/instancepools" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := instancepools.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := instancepools.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/ipv6firewallrules/README.md b/resource-manager/sql/2023-02-01-preview/ipv6firewallrules/README.md index 4df2add4357..f61a59cc180 100644 --- a/resource-manager/sql/2023-02-01-preview/ipv6firewallrules/README.md +++ b/resource-manager/sql/2023-02-01-preview/ipv6firewallrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/ipv6firewallrules" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ipv6firewallrules.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/jobagents/README.md b/resource-manager/sql/2023-02-01-preview/jobagents/README.md index 07e776221e4..5b179aa685e 100644 --- a/resource-manager/sql/2023-02-01-preview/jobagents/README.md +++ b/resource-manager/sql/2023-02-01-preview/jobagents/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/jobagents" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobagents.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/ledgerdigestuploads/README.md b/resource-manager/sql/2023-02-01-preview/ledgerdigestuploads/README.md index 4dd5b93b54c..97a90d82e5f 100644 --- a/resource-manager/sql/2023-02-01-preview/ledgerdigestuploads/README.md +++ b/resource-manager/sql/2023-02-01-preview/ledgerdigestuploads/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/ledgerdigestuploads" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := ledgerdigestuploads.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := ledgerdigestuploads.LedgerDigestUploads{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := ledgerdigestuploads.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") if err := client.DisableThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DisableThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := ledgerdigestuploads.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ledgerdigestuploads.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/longtermretentionpolicies/README.md b/resource-manager/sql/2023-02-01-preview/longtermretentionpolicies/README.md index 6ece5ac5f7d..96dd098437a 100644 --- a/resource-manager/sql/2023-02-01-preview/longtermretentionpolicies/README.md +++ b/resource-manager/sql/2023-02-01-preview/longtermretentionpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/longtermretentionpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := longtermretentionpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := longtermretentionpolicies.LongTermRetentionPolicy{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := longtermretentionpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := longtermretentionpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/maintenancewindowoptions/README.md b/resource-manager/sql/2023-02-01-preview/maintenancewindowoptions/README.md index d5a74b9b7db..471d2c35845 100644 --- a/resource-manager/sql/2023-02-01-preview/maintenancewindowoptions/README.md +++ b/resource-manager/sql/2023-02-01-preview/maintenancewindowoptions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/maintenancewindowoptions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := maintenancewindowoptions.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id, maintenancewindowoptions.DefaultGetOperationOptions()) if err != nil { diff --git a/resource-manager/sql/2023-02-01-preview/maintenancewindows/README.md b/resource-manager/sql/2023-02-01-preview/maintenancewindows/README.md index 6870de43f0b..fe8370092c6 100644 --- a/resource-manager/sql/2023-02-01-preview/maintenancewindows/README.md +++ b/resource-manager/sql/2023-02-01-preview/maintenancewindows/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/maintenancewindows" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := maintenancewindows.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := maintenancewindows.MaintenanceWindows{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenancewindows.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id, maintenancewindows.DefaultGetOperationOptions()) if err != nil { diff --git a/resource-manager/sql/2023-02-01-preview/managedbackupshorttermretentionpolicies/README.md b/resource-manager/sql/2023-02-01-preview/managedbackupshorttermretentionpolicies/README.md index bda0f81b9dd..0f3d277ce75 100644 --- a/resource-manager/sql/2023-02-01-preview/managedbackupshorttermretentionpolicies/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedbackupshorttermretentionpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedbackupshorttermretentionpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedbackupshorttermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := managedbackupshorttermretentionpolicies.ManagedBackupShortTermRetentionPolicy{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedbackupshorttermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedbackupshorttermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) @@ -74,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedbackupshorttermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := managedbackupshorttermretentionpolicies.ManagedBackupShortTermRetentionPolicy{ // ... diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabaseadvancedthreatprotectionsettings/README.md b/resource-manager/sql/2023-02-01-preview/manageddatabaseadvancedthreatprotectionsettings/README.md index a85d70ddb09..80a7a0ce00d 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabaseadvancedthreatprotectionsettings/README.md +++ b/resource-manager/sql/2023-02-01-preview/manageddatabaseadvancedthreatprotectionsettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/manageddatabaseadvancedthreatprotectionsettings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := manageddatabaseadvancedthreatprotectionsettings.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabaseadvancedthreatprotectionsettings.ManagedDatabaseAdvancedThreatProtection{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabaseadvancedthreatprotectionsettings.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabaseadvancedthreatprotectionsettings.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasecolumns/README.md b/resource-manager/sql/2023-02-01-preview/manageddatabasecolumns/README.md index 08d5613a6ff..1d3d6234f64 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasecolumns/README.md +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasecolumns/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/manageddatabasecolumns" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasecolumns.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id, manageddatabasecolumns.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id, manageddatabasecolumns.DefaultListByDatabaseOperationOptions()) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabaserestoredetails/README.md b/resource-manager/sql/2023-02-01-preview/manageddatabaserestoredetails/README.md index 023f663086a..cb131189a47 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabaserestoredetails/README.md +++ b/resource-manager/sql/2023-02-01-preview/manageddatabaserestoredetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/manageddatabaserestoredetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := manageddatabaserestoredetails.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabases/README.md b/resource-manager/sql/2023-02-01-preview/manageddatabases/README.md index 0543e8acb68..e5e9803804e 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabases/README.md +++ b/resource-manager/sql/2023-02-01-preview/manageddatabases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/manageddatabases" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabases.ManagedDatabaseMoveDefinition{ // ... @@ -41,7 +42,7 @@ if err := client.CancelMoveThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabases.ManagedDatabaseMoveDefinition{ // ... @@ -58,7 +59,7 @@ if err := client.CompleteMoveThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabases.CompleteDatabaseRestoreDefinition{ // ... @@ -75,7 +76,7 @@ if err := client.CompleteRestoreThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabases.ManagedDatabase{ // ... @@ -92,7 +93,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -104,7 +105,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -120,7 +121,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) @@ -137,7 +138,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListInaccessibleByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListInaccessibleByInstanceComplete(ctx, id) @@ -154,7 +155,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabases.ManagedDatabaseStartMoveDefinition{ // ... @@ -171,7 +172,7 @@ if err := client.StartMoveThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabases.ManagedDatabaseUpdate{ // ... diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabaseschemas/README.md b/resource-manager/sql/2023-02-01-preview/manageddatabaseschemas/README.md index 136507c55b1..f03899eff25 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabaseschemas/README.md +++ b/resource-manager/sql/2023-02-01-preview/manageddatabaseschemas/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/manageddatabaseschemas" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabaseschemas.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id, manageddatabaseschemas.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id, manageddatabaseschemas.DefaultListByDatabaseOperationOptions()) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityalertpolicies/README.md b/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityalertpolicies/README.md index a82320c5581..345c2b157c7 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityalertpolicies/README.md +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityalertpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityalertpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := manageddatabasesecurityalertpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabasesecurityalertpolicies.ManagedDatabaseSecurityAlertPolicy{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasesecurityalertpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasesecurityalertpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityevents/README.md b/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityevents/README.md index 0ae25656545..01f325b5e24 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityevents/README.md +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityevents/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityevents" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := manageddatabasesecurityevents.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id, manageddatabasesecurityevents.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id, manageddatabasesecurityevents.DefaultListByDatabaseOperationOptions()) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/README.md b/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/README.md index 6f373db573b..37b917a5ce9 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/README.md +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels" ``` @@ -109,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasesensitivitylabels.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id, manageddatabasesensitivitylabels.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id, manageddatabasesensitivitylabels.DefaultListByDatabaseOperationOptions()) @@ -126,7 +127,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := manageddatabasesensitivitylabels.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListCurrentByDatabase(ctx, id, manageddatabasesensitivitylabels.DefaultListCurrentByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListCurrentByDatabaseComplete(ctx, id, manageddatabasesensitivitylabels.DefaultListCurrentByDatabaseOperationOptions()) @@ -143,7 +144,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := manageddatabasesensitivitylabels.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListRecommendedByDatabase(ctx, id, manageddatabasesensitivitylabels.DefaultListRecommendedByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListRecommendedByDatabaseComplete(ctx, id, manageddatabasesensitivitylabels.DefaultListRecommendedByDatabaseOperationOptions()) @@ -160,7 +161,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := manageddatabasesensitivitylabels.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabasesensitivitylabels.RecommendedSensitivityLabelUpdateList{ // ... @@ -181,7 +182,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasesensitivitylabels.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabasesensitivitylabels.SensitivityLabelUpdateList{ // ... diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasetransparentdataencryption/README.md b/resource-manager/sql/2023-02-01-preview/manageddatabasetransparentdataencryption/README.md index a32c15398cb..1e302e49590 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasetransparentdataencryption/README.md +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasetransparentdataencryption/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/manageddatabasetransparentdataencryption" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := manageddatabasetransparentdataencryption.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabasetransparentdataencryption.ManagedTransparentDataEncryption{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasetransparentdataencryption.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasetransparentdataencryption.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessments/README.md b/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessments/README.md index b0d5dc3f590..0e43edaa041 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessments/README.md +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessments" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := manageddatabasevulnerabilityassessments.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabasevulnerabilityassessments.DatabaseVulnerabilityAssessment{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasevulnerabilityassessments.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasevulnerabilityassessments.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasevulnerabilityassessments.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessmentscans/README.md b/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessmentscans/README.md index cfa3cd5a838..c133111d594 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessmentscans/README.md +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessmentscans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessmentscans" ``` @@ -68,7 +69,7 @@ if err := client.InitiateScanThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := manageddatabasevulnerabilityassessmentscans.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstanceadministrators/README.md b/resource-manager/sql/2023-02-01-preview/managedinstanceadministrators/README.md index 4aca985c85a..e55b8a95b52 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstanceadministrators/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedinstanceadministrators/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedinstanceadministrators" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstanceadministrators.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstanceadministrators.ManagedInstanceAdministrator{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedinstanceadministrators.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedinstanceadministrators.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstanceadministrators.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstanceadvancedthreatprotectionsettings/README.md b/resource-manager/sql/2023-02-01-preview/managedinstanceadvancedthreatprotectionsettings/README.md index 425b7a53e23..c09bd9bcbf7 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstanceadvancedthreatprotectionsettings/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedinstanceadvancedthreatprotectionsettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedinstanceadvancedthreatprotectionsettings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstanceadvancedthreatprotectionsettings.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstanceadvancedthreatprotectionsettings.ManagedInstanceAdvancedThreatProtection{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedinstanceadvancedthreatprotectionsettings.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstanceadvancedthreatprotectionsettings.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstanceazureadonlyauthentications/README.md b/resource-manager/sql/2023-02-01-preview/managedinstanceazureadonlyauthentications/README.md index e3349934169..7eed9c4d704 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstanceazureadonlyauthentications/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedinstanceazureadonlyauthentications/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedinstanceazureadonlyauthentications" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstanceazureadonlyauthentications.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstanceazureadonlyauthentications.ManagedInstanceAzureADOnlyAuthentication{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedinstanceazureadonlyauthentications.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedinstanceazureadonlyauthentications.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstanceazureadonlyauthentications.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstancedtcs/README.md b/resource-manager/sql/2023-02-01-preview/managedinstancedtcs/README.md index 68e9cdda971..795317d3d91 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstancedtcs/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedinstancedtcs/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedinstancedtcs" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstancedtcs.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstancedtcs.ManagedInstanceDtc{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedinstancedtcs.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstancedtcs.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByManagedInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstanceencryptionprotectors/README.md b/resource-manager/sql/2023-02-01-preview/managedinstanceencryptionprotectors/README.md index c8cd6ad19e1..9efce150139 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstanceencryptionprotectors/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedinstanceencryptionprotectors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedinstanceencryptionprotectors" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstanceencryptionprotectors.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstanceencryptionprotectors.ManagedInstanceEncryptionProtector{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedinstanceencryptionprotectors.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstanceencryptionprotectors.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) @@ -74,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedinstanceencryptionprotectors.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.RevalidateThenPoll(ctx, id); err != nil { // handle the error diff --git a/resource-manager/sql/2023-02-01-preview/managedinstancekeys/README.md b/resource-manager/sql/2023-02-01-preview/managedinstancekeys/README.md index afb9b0fc66c..cc674336bcf 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstancekeys/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedinstancekeys/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedinstancekeys" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstancekeys.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id, managedinstancekeys.DefaultListByInstanceOperationOptions())` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id, managedinstancekeys.DefaultListByInstanceOperationOptions()) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstancelongtermretentionpolicies/README.md b/resource-manager/sql/2023-02-01-preview/managedinstancelongtermretentionpolicies/README.md index a5505b83ec7..2e25b9d5fa2 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstancelongtermretentionpolicies/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedinstancelongtermretentionpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedinstancelongtermretentionpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstancelongtermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := managedinstancelongtermretentionpolicies.ManagedInstanceLongTermRetentionPolicy{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedinstancelongtermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedinstancelongtermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstancelongtermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstanceoperations/README.md b/resource-manager/sql/2023-02-01-preview/managedinstanceoperations/README.md index acca9985571..1a62ebbd5cd 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstanceoperations/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedinstanceoperations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedinstanceoperations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstanceoperations.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByManagedInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstanceprivateendpointconnections/README.md b/resource-manager/sql/2023-02-01-preview/managedinstanceprivateendpointconnections/README.md index 4344b8ff322..4474ebe08a8 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstanceprivateendpointconnections/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedinstanceprivateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedinstanceprivateendpointconnections" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstanceprivateendpointconnections.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByManagedInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstanceprivatelinkresources/README.md b/resource-manager/sql/2023-02-01-preview/managedinstanceprivatelinkresources/README.md index 717812f343a..0722738e837 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstanceprivatelinkresources/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedinstanceprivatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedinstanceprivatelinkresources" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstanceprivatelinkresources.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByManagedInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstances/README.md b/resource-manager/sql/2023-02-01-preview/managedinstances/README.md index b5646f47b95..f30ee42d9d0 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstances/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedinstances/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedinstances" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstances.ManagedInstance{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.FailoverThenPoll(ctx, id, managedinstances.DefaultFailoverOperationOptions()); err != nil { // handle the error @@ -65,7 +66,7 @@ if err := client.FailoverThenPoll(ctx, id, managedinstances.DefaultFailoverOpera ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id, managedinstances.DefaultGetOperationOptions()) if err != nil { @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstances.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, managedinstances.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, managedinstances.DefaultListOperationOptions()) @@ -115,7 +116,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByManagedInstance(ctx, id, managedinstances.DefaultListByManagedInstanceOperationOptions())` can be used to do batched pagination items, err := client.ListByManagedInstanceComplete(ctx, id, managedinstances.DefaultListByManagedInstanceOperationOptions()) @@ -132,7 +133,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedinstances.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, managedinstances.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, managedinstances.DefaultListByResourceGroupOperationOptions()) @@ -149,7 +150,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListOutboundNetworkDependenciesByManagedInstance(ctx, id)` can be used to do batched pagination items, err := client.ListOutboundNetworkDependenciesByManagedInstanceComplete(ctx, id) @@ -166,7 +167,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.RefreshStatusThenPoll(ctx, id); err != nil { // handle the error @@ -178,7 +179,7 @@ if err := client.RefreshStatusThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -190,7 +191,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -202,7 +203,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstances.ManagedInstanceUpdate{ // ... diff --git a/resource-manager/sql/2023-02-01-preview/managedinstancetdecertificates/README.md b/resource-manager/sql/2023-02-01-preview/managedinstancetdecertificates/README.md index 5c420608941..dd38550bc1a 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstancetdecertificates/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedinstancetdecertificates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedinstancetdecertificates" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstancetdecertificates.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstancetdecertificates.TdeCertificate{ // ... diff --git a/resource-manager/sql/2023-02-01-preview/managedinstancevulnerabilityassessments/README.md b/resource-manager/sql/2023-02-01-preview/managedinstancevulnerabilityassessments/README.md index 254e593cadb..7b9732d35ce 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstancevulnerabilityassessments/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedinstancevulnerabilityassessments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedinstancevulnerabilityassessments" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstancevulnerabilityassessments.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstancevulnerabilityassessments.ManagedInstanceVulnerabilityAssessment{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstancevulnerabilityassessments.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstancevulnerabilityassessments.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstancevulnerabilityassessments.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/managedledgerdigestuploads/README.md b/resource-manager/sql/2023-02-01-preview/managedledgerdigestuploads/README.md index 6aab701d47b..6f565d47ce5 100644 --- a/resource-manager/sql/2023-02-01-preview/managedledgerdigestuploads/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedledgerdigestuploads/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedledgerdigestuploads" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedledgerdigestuploads.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := managedledgerdigestuploads.ManagedLedgerDigestUploads{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedledgerdigestuploads.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") if err := client.DisableThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DisableThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedledgerdigestuploads.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedledgerdigestuploads.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/managedserverdnsaliases/README.md b/resource-manager/sql/2023-02-01-preview/managedserverdnsaliases/README.md index f6c41a10072..51f1e76a219 100644 --- a/resource-manager/sql/2023-02-01-preview/managedserverdnsaliases/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedserverdnsaliases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedserverdnsaliases" ``` @@ -86,7 +87,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedserverdnsaliases.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByManagedInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/managedserversecurityalertpolicies/README.md b/resource-manager/sql/2023-02-01-preview/managedserversecurityalertpolicies/README.md index 184c06089ca..6b639148974 100644 --- a/resource-manager/sql/2023-02-01-preview/managedserversecurityalertpolicies/README.md +++ b/resource-manager/sql/2023-02-01-preview/managedserversecurityalertpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/managedserversecurityalertpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedserversecurityalertpolicies.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedserversecurityalertpolicies.ManagedServerSecurityAlertPolicy{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedserversecurityalertpolicies.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedserversecurityalertpolicies.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/networksecurityperimeterconfigurations/README.md b/resource-manager/sql/2023-02-01-preview/networksecurityperimeterconfigurations/README.md index 55dd4adc6c4..0e5e35adc22 100644 --- a/resource-manager/sql/2023-02-01-preview/networksecurityperimeterconfigurations/README.md +++ b/resource-manager/sql/2023-02-01-preview/networksecurityperimeterconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/networksecurityperimeterconfigurations" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networksecurityperimeterconfigurations.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/outboundfirewallrules/README.md b/resource-manager/sql/2023-02-01-preview/outboundfirewallrules/README.md index 7b315d933b8..f47c36a23a2 100644 --- a/resource-manager/sql/2023-02-01-preview/outboundfirewallrules/README.md +++ b/resource-manager/sql/2023-02-01-preview/outboundfirewallrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/outboundfirewallrules" ``` @@ -64,7 +65,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := outboundfirewallrules.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/privateendpointconnections/README.md b/resource-manager/sql/2023-02-01-preview/privateendpointconnections/README.md index bf1a8a502fd..b80fc353e82 100644 --- a/resource-manager/sql/2023-02-01-preview/privateendpointconnections/README.md +++ b/resource-manager/sql/2023-02-01-preview/privateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/privateendpointconnections" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/privatelinkresources/README.md b/resource-manager/sql/2023-02-01-preview/privatelinkresources/README.md index 98c42d19640..3e0a25185c7 100644 --- a/resource-manager/sql/2023-02-01-preview/privatelinkresources/README.md +++ b/resource-manager/sql/2023-02-01-preview/privatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/privatelinkresources" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkresources.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/recoverabledatabases/README.md b/resource-manager/sql/2023-02-01-preview/recoverabledatabases/README.md index 2e634dd3b1f..17a42a16994 100644 --- a/resource-manager/sql/2023-02-01-preview/recoverabledatabases/README.md +++ b/resource-manager/sql/2023-02-01-preview/recoverabledatabases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/recoverabledatabases" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recoverabledatabases.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/recoverablemanageddatabases/README.md b/resource-manager/sql/2023-02-01-preview/recoverablemanageddatabases/README.md index be34a3f6b93..e51b28057f6 100644 --- a/resource-manager/sql/2023-02-01-preview/recoverablemanageddatabases/README.md +++ b/resource-manager/sql/2023-02-01-preview/recoverablemanageddatabases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/recoverablemanageddatabases" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recoverablemanageddatabases.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/replicationlinks/README.md b/resource-manager/sql/2023-02-01-preview/replicationlinks/README.md index 998e35b4bb5..b5f3494b2dd 100644 --- a/resource-manager/sql/2023-02-01-preview/replicationlinks/README.md +++ b/resource-manager/sql/2023-02-01-preview/replicationlinks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/replicationlinks" ``` @@ -76,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := replicationlinks.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) @@ -93,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationlinks.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/restorabledroppeddatabases/README.md b/resource-manager/sql/2023-02-01-preview/restorabledroppeddatabases/README.md index 41283730a9c..2c8324300a7 100644 --- a/resource-manager/sql/2023-02-01-preview/restorabledroppeddatabases/README.md +++ b/resource-manager/sql/2023-02-01-preview/restorabledroppeddatabases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/restorabledroppeddatabases" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorabledroppeddatabases.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/restorabledroppedmanageddatabases/README.md b/resource-manager/sql/2023-02-01-preview/restorabledroppedmanageddatabases/README.md index 1ac112b9c49..457d3185b7b 100644 --- a/resource-manager/sql/2023-02-01-preview/restorabledroppedmanageddatabases/README.md +++ b/resource-manager/sql/2023-02-01-preview/restorabledroppedmanageddatabases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/restorabledroppedmanageddatabases" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorabledroppedmanageddatabases.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/restorepoints/README.md b/resource-manager/sql/2023-02-01-preview/restorepoints/README.md index d563525f816..949be7718e1 100644 --- a/resource-manager/sql/2023-02-01-preview/restorepoints/README.md +++ b/resource-manager/sql/2023-02-01-preview/restorepoints/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/restorepoints" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := restorepoints.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := restorepoints.CreateDatabaseRestorePointDefinition{ // ... @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorepoints.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/sensitivitylabels/README.md b/resource-manager/sql/2023-02-01-preview/sensitivitylabels/README.md index 3d91f4e1bcc..21c6a2f9d0d 100644 --- a/resource-manager/sql/2023-02-01-preview/sensitivitylabels/README.md +++ b/resource-manager/sql/2023-02-01-preview/sensitivitylabels/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/sensitivitylabels" ``` @@ -109,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sensitivitylabels.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id, sensitivitylabels.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id, sensitivitylabels.DefaultListByDatabaseOperationOptions()) @@ -126,7 +127,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sensitivitylabels.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListCurrentByDatabase(ctx, id, sensitivitylabels.DefaultListCurrentByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListCurrentByDatabaseComplete(ctx, id, sensitivitylabels.DefaultListCurrentByDatabaseOperationOptions()) @@ -143,7 +144,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sensitivitylabels.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListRecommendedByDatabase(ctx, id, sensitivitylabels.DefaultListRecommendedByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListRecommendedByDatabaseComplete(ctx, id, sensitivitylabels.DefaultListRecommendedByDatabaseOperationOptions()) @@ -160,7 +161,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sensitivitylabels.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := sensitivitylabels.RecommendedSensitivityLabelUpdateList{ // ... @@ -181,7 +182,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sensitivitylabels.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := sensitivitylabels.SensitivityLabelUpdateList{ // ... diff --git a/resource-manager/sql/2023-02-01-preview/serveradvancedthreatprotectionsettings/README.md b/resource-manager/sql/2023-02-01-preview/serveradvancedthreatprotectionsettings/README.md index ddfccd55633..97d149ee56f 100644 --- a/resource-manager/sql/2023-02-01-preview/serveradvancedthreatprotectionsettings/README.md +++ b/resource-manager/sql/2023-02-01-preview/serveradvancedthreatprotectionsettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/serveradvancedthreatprotectionsettings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serveradvancedthreatprotectionsettings.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := serveradvancedthreatprotectionsettings.ServerAdvancedThreatProtection{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serveradvancedthreatprotectionsettings.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serveradvancedthreatprotectionsettings.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/serveradvisors/README.md b/resource-manager/sql/2023-02-01-preview/serveradvisors/README.md index 1e43a092937..cc4b2fbf431 100644 --- a/resource-manager/sql/2023-02-01-preview/serveradvisors/README.md +++ b/resource-manager/sql/2023-02-01-preview/serveradvisors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/serveradvisors" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serveradvisors.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.ListByServer(ctx, id, serveradvisors.DefaultListByServerOperationOptions()) if err != nil { diff --git a/resource-manager/sql/2023-02-01-preview/serverautomatictuning/README.md b/resource-manager/sql/2023-02-01-preview/serverautomatictuning/README.md index c7b55961a66..afa40d61d2b 100644 --- a/resource-manager/sql/2023-02-01-preview/serverautomatictuning/README.md +++ b/resource-manager/sql/2023-02-01-preview/serverautomatictuning/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/serverautomatictuning" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverautomatictuning.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverautomatictuning.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := serverautomatictuning.ServerAutomaticTuning{ // ... diff --git a/resource-manager/sql/2023-02-01-preview/serverazureadadministrators/README.md b/resource-manager/sql/2023-02-01-preview/serverazureadadministrators/README.md index 688697f81f3..14f5b104fa5 100644 --- a/resource-manager/sql/2023-02-01-preview/serverazureadadministrators/README.md +++ b/resource-manager/sql/2023-02-01-preview/serverazureadadministrators/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/serverazureadadministrators" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverazureadadministrators.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := serverazureadadministrators.ServerAzureADAdministrator{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serverazureadadministrators.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := serverazureadadministrators.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverazureadadministrators.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/serverazureadonlyauthentications/README.md b/resource-manager/sql/2023-02-01-preview/serverazureadonlyauthentications/README.md index b0fae453b38..b26883de887 100644 --- a/resource-manager/sql/2023-02-01-preview/serverazureadonlyauthentications/README.md +++ b/resource-manager/sql/2023-02-01-preview/serverazureadonlyauthentications/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/serverazureadonlyauthentications" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverazureadonlyauthentications.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := serverazureadonlyauthentications.ServerAzureADOnlyAuthentication{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serverazureadonlyauthentications.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := serverazureadonlyauthentications.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverazureadonlyauthentications.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/serverconfigurationoptions/README.md b/resource-manager/sql/2023-02-01-preview/serverconfigurationoptions/README.md index 85b79f70d77..ce58116f33e 100644 --- a/resource-manager/sql/2023-02-01-preview/serverconfigurationoptions/README.md +++ b/resource-manager/sql/2023-02-01-preview/serverconfigurationoptions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/serverconfigurationoptions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverconfigurationoptions.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := serverconfigurationoptions.ServerConfigurationOption{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serverconfigurationoptions.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverconfigurationoptions.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByManagedInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/serverconnectionpolicies/README.md b/resource-manager/sql/2023-02-01-preview/serverconnectionpolicies/README.md index 721e8f4c02f..d98df9ef36f 100644 --- a/resource-manager/sql/2023-02-01-preview/serverconnectionpolicies/README.md +++ b/resource-manager/sql/2023-02-01-preview/serverconnectionpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/serverconnectionpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverconnectionpolicies.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := serverconnectionpolicies.ServerConnectionPolicy{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serverconnectionpolicies.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverconnectionpolicies.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/serverdevopsaudit/README.md b/resource-manager/sql/2023-02-01-preview/serverdevopsaudit/README.md index bfd842cb795..05d566077d7 100644 --- a/resource-manager/sql/2023-02-01-preview/serverdevopsaudit/README.md +++ b/resource-manager/sql/2023-02-01-preview/serverdevopsaudit/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/serverdevopsaudit" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverdevopsaudit.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := serverdevopsaudit.ServerDevOpsAuditingSettings{ // ... @@ -41,7 +42,7 @@ if err := client.SettingsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serverdevopsaudit.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.SettingsGet(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverdevopsaudit.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.SettingsListByServer(ctx, id)` can be used to do batched pagination items, err := client.SettingsListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/serverdnsaliases/README.md b/resource-manager/sql/2023-02-01-preview/serverdnsaliases/README.md index 624369149a3..551aef2ca8c 100644 --- a/resource-manager/sql/2023-02-01-preview/serverdnsaliases/README.md +++ b/resource-manager/sql/2023-02-01-preview/serverdnsaliases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/serverdnsaliases" ``` @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverdnsaliases.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/serverkeys/README.md b/resource-manager/sql/2023-02-01-preview/serverkeys/README.md index 8816a2989fa..2a812dff7ff 100644 --- a/resource-manager/sql/2023-02-01-preview/serverkeys/README.md +++ b/resource-manager/sql/2023-02-01-preview/serverkeys/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/serverkeys" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverkeys.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/serveroperations/README.md b/resource-manager/sql/2023-02-01-preview/serveroperations/README.md index 7b2ad21796c..6c20ba9b1c3 100644 --- a/resource-manager/sql/2023-02-01-preview/serveroperations/README.md +++ b/resource-manager/sql/2023-02-01-preview/serveroperations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/serveroperations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serveroperations.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/servers/README.md b/resource-manager/sql/2023-02-01-preview/servers/README.md index bab3132cbf7..5fa077033a2 100644 --- a/resource-manager/sql/2023-02-01-preview/servers/README.md +++ b/resource-manager/sql/2023-02-01-preview/servers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/servers" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := servers.CheckNameAvailabilityRequest{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := servers.Server{ // ... @@ -62,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := servers.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -74,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := servers.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id, servers.DefaultGetOperationOptions()) if err != nil { @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := servers.ImportNewDatabaseDefinition{ // ... @@ -107,7 +108,7 @@ if err := client.ImportDatabaseThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := servers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, servers.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, servers.DefaultListOperationOptions()) @@ -124,7 +125,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, servers.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, servers.DefaultListByResourceGroupOperationOptions()) @@ -141,7 +142,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servers.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") if err := client.RefreshStatusThenPoll(ctx, id); err != nil { // handle the error @@ -153,7 +154,7 @@ if err := client.RefreshStatusThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := servers.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := servers.ServerUpdate{ // ... diff --git a/resource-manager/sql/2023-02-01-preview/serversecurityalertpolicies/README.md b/resource-manager/sql/2023-02-01-preview/serversecurityalertpolicies/README.md index f3eee788111..0f505cd6039 100644 --- a/resource-manager/sql/2023-02-01-preview/serversecurityalertpolicies/README.md +++ b/resource-manager/sql/2023-02-01-preview/serversecurityalertpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/serversecurityalertpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serversecurityalertpolicies.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := serversecurityalertpolicies.ServerSecurityAlertPolicy{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serversecurityalertpolicies.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serversecurityalertpolicies.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/servertrustcertificates/README.md b/resource-manager/sql/2023-02-01-preview/servertrustcertificates/README.md index b399981661f..b611cd5ed5a 100644 --- a/resource-manager/sql/2023-02-01-preview/servertrustcertificates/README.md +++ b/resource-manager/sql/2023-02-01-preview/servertrustcertificates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/servertrustcertificates" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servertrustcertificates.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/servertrustgroups/README.md b/resource-manager/sql/2023-02-01-preview/servertrustgroups/README.md index 9864aa06a0b..6dab2bce372 100644 --- a/resource-manager/sql/2023-02-01-preview/servertrustgroups/README.md +++ b/resource-manager/sql/2023-02-01-preview/servertrustgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/servertrustgroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servertrustgroups.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/serverusages/README.md b/resource-manager/sql/2023-02-01-preview/serverusages/README.md index 032109a1903..89628ebe73e 100644 --- a/resource-manager/sql/2023-02-01-preview/serverusages/README.md +++ b/resource-manager/sql/2023-02-01-preview/serverusages/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/serverusages" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverusages.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/servervulnerabilityassessments/README.md b/resource-manager/sql/2023-02-01-preview/servervulnerabilityassessments/README.md index e5c0e2f9eca..d931d6ba101 100644 --- a/resource-manager/sql/2023-02-01-preview/servervulnerabilityassessments/README.md +++ b/resource-manager/sql/2023-02-01-preview/servervulnerabilityassessments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/servervulnerabilityassessments" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servervulnerabilityassessments.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := servervulnerabilityassessments.ServerVulnerabilityAssessment{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servervulnerabilityassessments.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servervulnerabilityassessments.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servervulnerabilityassessments.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/sqlagent/README.md b/resource-manager/sql/2023-02-01-preview/sqlagent/README.md index 6024bcd2081..954a31b46aa 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlagent/README.md +++ b/resource-manager/sql/2023-02-01-preview/sqlagent/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/sqlagent" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sqlagent.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := sqlagent.SqlAgentConfiguration{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlagent.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/README.md b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/README.md index e8d755e9571..cb11aa1d722 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/README.md +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentbaseline.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := sqlvulnerabilityassessmentbaseline.DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentbaseline.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id, sqlvulnerabilityassessmentbaseline.DefaultGetOperationOptions()) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentbaseline.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListBySqlVulnerabilityAssessment(ctx, id, sqlvulnerabilityassessmentbaseline.DefaultListBySqlVulnerabilityAssessmentOperationOptions())` can be used to do batched pagination items, err := client.ListBySqlVulnerabilityAssessmentComplete(ctx, id, sqlvulnerabilityassessmentbaseline.DefaultListBySqlVulnerabilityAssessmentOperationOptions()) diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/README.md b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/README.md index e41d660c310..e27f24ed6b1 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/README.md +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentrulebaseline.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByBaseline(ctx, id, sqlvulnerabilityassessmentrulebaseline.DefaultListByBaselineOperationOptions())` can be used to do batched pagination items, err := client.ListByBaselineComplete(ctx, id, sqlvulnerabilityassessmentrulebaseline.DefaultListByBaselineOperationOptions()) diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscans/README.md b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscans/README.md index 9a82bcacca6..17ecd967e47 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscans/README.md +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscans" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentscans.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListBySqlVulnerabilityAssessments(ctx, id, sqlvulnerabilityassessmentscans.DefaultListBySqlVulnerabilityAssessmentsOperationOptions())` can be used to do batched pagination items, err := client.ListBySqlVulnerabilityAssessmentsComplete(ctx, id, sqlvulnerabilityassessmentscans.DefaultListBySqlVulnerabilityAssessmentsOperationOptions()) diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentssettings/README.md b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentssettings/README.md index a390935f585..250668e3b27 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentssettings/README.md +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentssettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentssettings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentssettings.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := sqlvulnerabilityassessmentssettings.SqlVulnerabilityAssessment{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentssettings.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentssettings.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -78,7 +79,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentssettings.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.SqlVulnerabilityAssessmentsDelete(ctx, id) if err != nil { diff --git a/resource-manager/sql/2023-02-01-preview/startstopmanagedinstanceschedules/README.md b/resource-manager/sql/2023-02-01-preview/startstopmanagedinstanceschedules/README.md index 83f610b587c..3bae838e575 100644 --- a/resource-manager/sql/2023-02-01-preview/startstopmanagedinstanceschedules/README.md +++ b/resource-manager/sql/2023-02-01-preview/startstopmanagedinstanceschedules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/startstopmanagedinstanceschedules" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := startstopmanagedinstanceschedules.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := startstopmanagedinstanceschedules.StartStopManagedInstanceSchedule{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := startstopmanagedinstanceschedules.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := startstopmanagedinstanceschedules.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := startstopmanagedinstanceschedules.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/synapselinkworkspaces/README.md b/resource-manager/sql/2023-02-01-preview/synapselinkworkspaces/README.md index bed5baaed53..d0e37c665e9 100644 --- a/resource-manager/sql/2023-02-01-preview/synapselinkworkspaces/README.md +++ b/resource-manager/sql/2023-02-01-preview/synapselinkworkspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/synapselinkworkspaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := synapselinkworkspaces.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/syncagents/README.md b/resource-manager/sql/2023-02-01-preview/syncagents/README.md index c2e53914d47..bc01cdb5439 100644 --- a/resource-manager/sql/2023-02-01-preview/syncagents/README.md +++ b/resource-manager/sql/2023-02-01-preview/syncagents/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/syncagents" ``` @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := syncagents.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/syncgroups/README.md b/resource-manager/sql/2023-02-01-preview/syncgroups/README.md index a9b00be9282..91974af945e 100644 --- a/resource-manager/sql/2023-02-01-preview/syncgroups/README.md +++ b/resource-manager/sql/2023-02-01-preview/syncgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/syncgroups" ``` @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := syncgroups.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/tdecertificates/README.md b/resource-manager/sql/2023-02-01-preview/tdecertificates/README.md index 8cf04929a99..41e1c738053 100644 --- a/resource-manager/sql/2023-02-01-preview/tdecertificates/README.md +++ b/resource-manager/sql/2023-02-01-preview/tdecertificates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/tdecertificates" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := tdecertificates.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := tdecertificates.TdeCertificate{ // ... diff --git a/resource-manager/sql/2023-02-01-preview/transparentdataencryptions/README.md b/resource-manager/sql/2023-02-01-preview/transparentdataencryptions/README.md index 37672c3fbe9..75a154ca176 100644 --- a/resource-manager/sql/2023-02-01-preview/transparentdataencryptions/README.md +++ b/resource-manager/sql/2023-02-01-preview/transparentdataencryptions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/transparentdataencryptions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := transparentdataencryptions.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := transparentdataencryptions.LogicalDatabaseTransparentDataEncryption{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := transparentdataencryptions.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := transparentdataencryptions.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/virtualclusters/README.md b/resource-manager/sql/2023-02-01-preview/virtualclusters/README.md index 01e57b4baf6..1f489e6beef 100644 --- a/resource-manager/sql/2023-02-01-preview/virtualclusters/README.md +++ b/resource-manager/sql/2023-02-01-preview/virtualclusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/virtualclusters" ``` @@ -52,7 +53,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualclusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -69,7 +70,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualclusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/virtualnetworkrules/README.md b/resource-manager/sql/2023-02-01-preview/virtualnetworkrules/README.md index 7d8e9a90b5b..63b9aa2056a 100644 --- a/resource-manager/sql/2023-02-01-preview/virtualnetworkrules/README.md +++ b/resource-manager/sql/2023-02-01-preview/virtualnetworkrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/virtualnetworkrules" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworkrules.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-02-01-preview/workloadgroups/README.md b/resource-manager/sql/2023-02-01-preview/workloadgroups/README.md index 9a1aafa0b39..924b3b4465f 100644 --- a/resource-manager/sql/2023-02-01-preview/workloadgroups/README.md +++ b/resource-manager/sql/2023-02-01-preview/workloadgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/workloadgroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workloadgroups.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/backupshorttermretentionpolicies/README.md b/resource-manager/sql/2023-05-01-preview/backupshorttermretentionpolicies/README.md index d878825bdbc..2354aff0942 100644 --- a/resource-manager/sql/2023-05-01-preview/backupshorttermretentionpolicies/README.md +++ b/resource-manager/sql/2023-05-01-preview/backupshorttermretentionpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/backupshorttermretentionpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := backupshorttermretentionpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := backupshorttermretentionpolicies.BackupShortTermRetentionPolicy{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := backupshorttermretentionpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backupshorttermretentionpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) @@ -74,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := backupshorttermretentionpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := backupshorttermretentionpolicies.BackupShortTermRetentionPolicy{ // ... diff --git a/resource-manager/sql/2023-05-01-preview/blobauditing/README.md b/resource-manager/sql/2023-05-01-preview/blobauditing/README.md index 87a3d2f9c05..9315c5b4db2 100644 --- a/resource-manager/sql/2023-05-01-preview/blobauditing/README.md +++ b/resource-manager/sql/2023-05-01-preview/blobauditing/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/blobauditing" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := blobauditing.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := blobauditing.DatabaseBlobAuditingPolicy{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobauditing.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.DatabaseBlobAuditingPoliciesGet(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobauditing.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.DatabaseBlobAuditingPoliciesListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.DatabaseBlobAuditingPoliciesListByDatabaseComplete(ctx, id) @@ -78,7 +79,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := blobauditing.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := blobauditing.ExtendedDatabaseBlobAuditingPolicy{ // ... @@ -99,7 +100,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobauditing.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.ExtendedDatabaseBlobAuditingPoliciesGet(ctx, id) if err != nil { @@ -115,7 +116,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobauditing.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ExtendedDatabaseBlobAuditingPoliciesListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ExtendedDatabaseBlobAuditingPoliciesListByDatabaseComplete(ctx, id) @@ -132,7 +133,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := blobauditing.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := blobauditing.ExtendedServerBlobAuditingPolicy{ // ... @@ -149,7 +150,7 @@ if err := client.ExtendedServerBlobAuditingPoliciesCreateOrUpdateThenPoll(ctx, i ```go ctx := context.TODO() -id := blobauditing.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.ExtendedServerBlobAuditingPoliciesGet(ctx, id) if err != nil { @@ -165,7 +166,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobauditing.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ExtendedServerBlobAuditingPoliciesListByServer(ctx, id)` can be used to do batched pagination items, err := client.ExtendedServerBlobAuditingPoliciesListByServerComplete(ctx, id) @@ -182,7 +183,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := blobauditing.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := blobauditing.ServerBlobAuditingPolicy{ // ... @@ -199,7 +200,7 @@ if err := client.ServerBlobAuditingPoliciesCreateOrUpdateThenPoll(ctx, id, paylo ```go ctx := context.TODO() -id := blobauditing.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.ServerBlobAuditingPoliciesGet(ctx, id) if err != nil { @@ -215,7 +216,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobauditing.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ServerBlobAuditingPoliciesListByServer(ctx, id)` can be used to do batched pagination items, err := client.ServerBlobAuditingPoliciesListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/databaseadvancedthreatprotectionsettings/README.md b/resource-manager/sql/2023-05-01-preview/databaseadvancedthreatprotectionsettings/README.md index ce37d28d3db..a7b971216a9 100644 --- a/resource-manager/sql/2023-05-01-preview/databaseadvancedthreatprotectionsettings/README.md +++ b/resource-manager/sql/2023-05-01-preview/databaseadvancedthreatprotectionsettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databaseadvancedthreatprotectionsettings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databaseadvancedthreatprotectionsettings.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databaseadvancedthreatprotectionsettings.DatabaseAdvancedThreatProtection{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databaseadvancedthreatprotectionsettings.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databaseadvancedthreatprotectionsettings.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/databaseadvisors/README.md b/resource-manager/sql/2023-05-01-preview/databaseadvisors/README.md index e68dc6e892f..5d777488a27 100644 --- a/resource-manager/sql/2023-05-01-preview/databaseadvisors/README.md +++ b/resource-manager/sql/2023-05-01-preview/databaseadvisors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databaseadvisors" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databaseadvisors.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.ListByDatabase(ctx, id, databaseadvisors.DefaultListByDatabaseOperationOptions()) if err != nil { diff --git a/resource-manager/sql/2023-05-01-preview/databaseautomatictuning/README.md b/resource-manager/sql/2023-05-01-preview/databaseautomatictuning/README.md index 4ea37e250ee..606064db226 100644 --- a/resource-manager/sql/2023-05-01-preview/databaseautomatictuning/README.md +++ b/resource-manager/sql/2023-05-01-preview/databaseautomatictuning/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databaseautomatictuning" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databaseautomatictuning.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databaseautomatictuning.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databaseautomatictuning.DatabaseAutomaticTuning{ // ... diff --git a/resource-manager/sql/2023-05-01-preview/databasecolumns/README.md b/resource-manager/sql/2023-05-01-preview/databasecolumns/README.md index 33bbac15bf1..fb5d01eafae 100644 --- a/resource-manager/sql/2023-05-01-preview/databasecolumns/README.md +++ b/resource-manager/sql/2023-05-01-preview/databasecolumns/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databasecolumns" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasecolumns.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id, databasecolumns.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id, databasecolumns.DefaultListByDatabaseOperationOptions()) diff --git a/resource-manager/sql/2023-05-01-preview/databaseextensions/README.md b/resource-manager/sql/2023-05-01-preview/databaseextensions/README.md index ade11c866cf..1b1ed1a58e2 100644 --- a/resource-manager/sql/2023-05-01-preview/databaseextensions/README.md +++ b/resource-manager/sql/2023-05-01-preview/databaseextensions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databaseextensions" ``` @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databaseextensions.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/databaseoperations/README.md b/resource-manager/sql/2023-05-01-preview/databaseoperations/README.md index 59a6f0d9f98..4dfa5a46b41 100644 --- a/resource-manager/sql/2023-05-01-preview/databaseoperations/README.md +++ b/resource-manager/sql/2023-05-01-preview/databaseoperations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databaseoperations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databaseoperations.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/databases/README.md b/resource-manager/sql/2023-05-01-preview/databases/README.md index a489f270663..c8e1e5f4c59 100644 --- a/resource-manager/sql/2023-05-01-preview/databases/README.md +++ b/resource-manager/sql/2023-05-01-preview/databases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databases" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databases.Database{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databases.ExportDatabaseDefinition{ // ... @@ -70,7 +71,7 @@ if err := client.ExportThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") if err := client.FailoverThenPoll(ctx, id, databases.DefaultFailoverOperationOptions()); err != nil { // handle the error @@ -82,7 +83,7 @@ if err := client.FailoverThenPoll(ctx, id, databases.DefaultFailoverOperationOpt ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id, databases.DefaultGetOperationOptions()) if err != nil { @@ -98,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databases.ImportExistingDatabaseDefinition{ // ... @@ -115,7 +116,7 @@ if err := client.ImportThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") // alternatively `client.ListByElasticPool(ctx, id)` can be used to do batched pagination items, err := client.ListByElasticPoolComplete(ctx, id) @@ -132,7 +133,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := databases.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -149,7 +150,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := databases.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListInaccessibleByServer(ctx, id)` can be used to do batched pagination items, err := client.ListInaccessibleByServerComplete(ctx, id) @@ -166,7 +167,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") if err := client.PauseThenPoll(ctx, id); err != nil { // handle the error @@ -178,7 +179,7 @@ if err := client.PauseThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databases.ResourceMoveDefinition{ // ... @@ -199,7 +200,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") if err := client.ResumeThenPoll(ctx, id); err != nil { // handle the error @@ -211,7 +212,7 @@ if err := client.ResumeThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databases.DatabaseUpdate{ // ... @@ -228,7 +229,7 @@ if err := client.UpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") if err := client.UpgradeDataWarehouseThenPoll(ctx, id); err != nil { // handle the error diff --git a/resource-manager/sql/2023-05-01-preview/databaseschemas/README.md b/resource-manager/sql/2023-05-01-preview/databaseschemas/README.md index a6ac0672fc4..0b1212be34c 100644 --- a/resource-manager/sql/2023-05-01-preview/databaseschemas/README.md +++ b/resource-manager/sql/2023-05-01-preview/databaseschemas/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databaseschemas" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databaseschemas.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id, databaseschemas.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id, databaseschemas.DefaultListByDatabaseOperationOptions()) diff --git a/resource-manager/sql/2023-05-01-preview/databasesecurityalertpolicies/README.md b/resource-manager/sql/2023-05-01-preview/databasesecurityalertpolicies/README.md index 120497dc6fe..9ceabf7358f 100644 --- a/resource-manager/sql/2023-05-01-preview/databasesecurityalertpolicies/README.md +++ b/resource-manager/sql/2023-05-01-preview/databasesecurityalertpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databasesecurityalertpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databasesecurityalertpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databasesecurityalertpolicies.DatabaseSecurityAlertPolicy{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasesecurityalertpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasesecurityalertpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentbaselines/README.md b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentbaselines/README.md index bbf2c39c6bb..b19113fe388 100644 --- a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentbaselines/README.md +++ b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentbaselines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentbaselines" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databasesqlvulnerabilityassessmentbaselines.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databasesqlvulnerabilityassessmentbaselines.DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasesqlvulnerabilityassessmentbaselines.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasesqlvulnerabilityassessmentbaselines.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListBySqlVulnerabilityAssessment(ctx, id)` can be used to do batched pagination items, err := client.ListBySqlVulnerabilityAssessmentComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentrulebaselines/README.md b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentrulebaselines/README.md index 85bbb2f1158..f9de6de8d57 100644 --- a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentrulebaselines/README.md +++ b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentrulebaselines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentrulebaselines" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasesqlvulnerabilityassessmentrulebaselines.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByBaseline(ctx, id)` can be used to do batched pagination items, err := client.ListByBaselineComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentscans/README.md b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentscans/README.md index d3f513938ed..5d2726a7af3 100644 --- a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentscans/README.md +++ b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentscans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentscans" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasesqlvulnerabilityassessmentscans.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListBySqlVulnerabilityAssessments(ctx, id)` can be used to do batched pagination items, err := client.ListBySqlVulnerabilityAssessmentsComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentssettings/README.md b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentssettings/README.md index 0418064e8cb..c246dc471eb 100644 --- a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentssettings/README.md +++ b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentssettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentssettings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databasesqlvulnerabilityassessmentssettings.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasesqlvulnerabilityassessmentssettings.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/databaseusages/README.md b/resource-manager/sql/2023-05-01-preview/databaseusages/README.md index d6fef95bbb4..337c30a4173 100644 --- a/resource-manager/sql/2023-05-01-preview/databaseusages/README.md +++ b/resource-manager/sql/2023-05-01-preview/databaseusages/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databaseusages" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databaseusages.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessments/README.md b/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessments/README.md index 2df274bdd53..d6a1a8ec3d9 100644 --- a/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessments/README.md +++ b/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessments" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databasevulnerabilityassessments.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := databasevulnerabilityassessments.DatabaseVulnerabilityAssessment{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasevulnerabilityassessments.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasevulnerabilityassessments.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasevulnerabilityassessments.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessmentscans/README.md b/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessmentscans/README.md index 4c5296cdd70..28d014eb018 100644 --- a/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessmentscans/README.md +++ b/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessmentscans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessmentscans" ``` @@ -68,7 +69,7 @@ if err := client.InitiateScanThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := databasevulnerabilityassessmentscans.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/datamaskingpolicies/README.md b/resource-manager/sql/2023-05-01-preview/datamaskingpolicies/README.md index c600de92ded..fd1f14827e8 100644 --- a/resource-manager/sql/2023-05-01-preview/datamaskingpolicies/README.md +++ b/resource-manager/sql/2023-05-01-preview/datamaskingpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/datamaskingpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := datamaskingpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := datamaskingpolicies.DataMaskingPolicy{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datamaskingpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/sql/2023-05-01-preview/datamaskingrules/README.md b/resource-manager/sql/2023-05-01-preview/datamaskingrules/README.md index b1bd69e76c6..7f8a693dd2a 100644 --- a/resource-manager/sql/2023-05-01-preview/datamaskingrules/README.md +++ b/resource-manager/sql/2023-05-01-preview/datamaskingrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/datamaskingrules" ``` @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datamaskingrules.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/datawarehouseuseractivities/README.md b/resource-manager/sql/2023-05-01-preview/datawarehouseuseractivities/README.md index 02c97654a1e..f59a1667b67 100644 --- a/resource-manager/sql/2023-05-01-preview/datawarehouseuseractivities/README.md +++ b/resource-manager/sql/2023-05-01-preview/datawarehouseuseractivities/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/datawarehouseuseractivities" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := datawarehouseuseractivities.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datawarehouseuseractivities.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/deletedservers/README.md b/resource-manager/sql/2023-05-01-preview/deletedservers/README.md index 3b3f852af82..63fc2e3246a 100644 --- a/resource-manager/sql/2023-05-01-preview/deletedservers/README.md +++ b/resource-manager/sql/2023-05-01-preview/deletedservers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/deletedservers" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deletedservers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/distributedavailabilitygroups/README.md b/resource-manager/sql/2023-05-01-preview/distributedavailabilitygroups/README.md index 5c413e7990a..4b2216ae5af 100644 --- a/resource-manager/sql/2023-05-01-preview/distributedavailabilitygroups/README.md +++ b/resource-manager/sql/2023-05-01-preview/distributedavailabilitygroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/distributedavailabilitygroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := distributedavailabilitygroups.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/elasticpooloperations/README.md b/resource-manager/sql/2023-05-01-preview/elasticpooloperations/README.md index 207a9080af0..759befed219 100644 --- a/resource-manager/sql/2023-05-01-preview/elasticpooloperations/README.md +++ b/resource-manager/sql/2023-05-01-preview/elasticpooloperations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/elasticpooloperations" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := elasticpooloperations.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") // alternatively `client.ListByElasticPool(ctx, id)` can be used to do batched pagination items, err := client.ListByElasticPoolComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/elasticpools/README.md b/resource-manager/sql/2023-05-01-preview/elasticpools/README.md index 6d4feb50725..0d0f414a35f 100644 --- a/resource-manager/sql/2023-05-01-preview/elasticpools/README.md +++ b/resource-manager/sql/2023-05-01-preview/elasticpools/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/elasticpools" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := elasticpools.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") payload := elasticpools.ElasticPool{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := elasticpools.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := elasticpools.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") if err := client.FailoverThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +66,7 @@ if err := client.FailoverThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := elasticpools.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") read, err := client.Get(ctx, id) if err != nil { @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := elasticpools.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id, elasticpools.DefaultListByServerOperationOptions())` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id, elasticpools.DefaultListByServerOperationOptions()) @@ -98,7 +99,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := elasticpools.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") payload := elasticpools.ElasticPoolUpdate{ // ... diff --git a/resource-manager/sql/2023-05-01-preview/encryptionprotectors/README.md b/resource-manager/sql/2023-05-01-preview/encryptionprotectors/README.md index 45cea0da751..2d41ce625c5 100644 --- a/resource-manager/sql/2023-05-01-preview/encryptionprotectors/README.md +++ b/resource-manager/sql/2023-05-01-preview/encryptionprotectors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/encryptionprotectors" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := encryptionprotectors.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := encryptionprotectors.EncryptionProtector{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := encryptionprotectors.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := encryptionprotectors.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -74,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := encryptionprotectors.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") if err := client.RevalidateThenPoll(ctx, id); err != nil { // handle the error diff --git a/resource-manager/sql/2023-05-01-preview/endpointcertificates/README.md b/resource-manager/sql/2023-05-01-preview/endpointcertificates/README.md index c6839d46f38..c17a0af1ef0 100644 --- a/resource-manager/sql/2023-05-01-preview/endpointcertificates/README.md +++ b/resource-manager/sql/2023-05-01-preview/endpointcertificates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/endpointcertificates" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := endpointcertificates.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/failovergroups/README.md b/resource-manager/sql/2023-05-01-preview/failovergroups/README.md index f490875b61a..81b0e3e63f1 100644 --- a/resource-manager/sql/2023-05-01-preview/failovergroups/README.md +++ b/resource-manager/sql/2023-05-01-preview/failovergroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/failovergroups" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := failovergroups.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/firewallrules/README.md b/resource-manager/sql/2023-05-01-preview/firewallrules/README.md index c73967e1267..ed35ee0e90e 100644 --- a/resource-manager/sql/2023-05-01-preview/firewallrules/README.md +++ b/resource-manager/sql/2023-05-01-preview/firewallrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/firewallrules" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallrules.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := firewallrules.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := firewallrules.FirewallRuleList{ // ... diff --git a/resource-manager/sql/2023-05-01-preview/geobackuppolicies/README.md b/resource-manager/sql/2023-05-01-preview/geobackuppolicies/README.md index d134489b77b..b7f46e86bb6 100644 --- a/resource-manager/sql/2023-05-01-preview/geobackuppolicies/README.md +++ b/resource-manager/sql/2023-05-01-preview/geobackuppolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/geobackuppolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := geobackuppolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := geobackuppolicies.GeoBackupPolicy{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := geobackuppolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := geobackuppolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/instancepools/README.md b/resource-manager/sql/2023-05-01-preview/instancepools/README.md index 550d3ddfc68..b2b7e42e8e7 100644 --- a/resource-manager/sql/2023-05-01-preview/instancepools/README.md +++ b/resource-manager/sql/2023-05-01-preview/instancepools/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/instancepools" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := instancepools.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := instancepools.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/ipv6firewallrules/README.md b/resource-manager/sql/2023-05-01-preview/ipv6firewallrules/README.md index e1ba7112d61..1562e9dae16 100644 --- a/resource-manager/sql/2023-05-01-preview/ipv6firewallrules/README.md +++ b/resource-manager/sql/2023-05-01-preview/ipv6firewallrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/ipv6firewallrules" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ipv6firewallrules.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/jobagents/README.md b/resource-manager/sql/2023-05-01-preview/jobagents/README.md index b7dbbb138ab..ed42827a9c9 100644 --- a/resource-manager/sql/2023-05-01-preview/jobagents/README.md +++ b/resource-manager/sql/2023-05-01-preview/jobagents/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/jobagents" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobagents.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/ledgerdigestuploads/README.md b/resource-manager/sql/2023-05-01-preview/ledgerdigestuploads/README.md index 55d5fc75d68..56933d57d5e 100644 --- a/resource-manager/sql/2023-05-01-preview/ledgerdigestuploads/README.md +++ b/resource-manager/sql/2023-05-01-preview/ledgerdigestuploads/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/ledgerdigestuploads" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := ledgerdigestuploads.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := ledgerdigestuploads.LedgerDigestUploads{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := ledgerdigestuploads.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") if err := client.DisableThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DisableThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := ledgerdigestuploads.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ledgerdigestuploads.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/longtermretentionpolicies/README.md b/resource-manager/sql/2023-05-01-preview/longtermretentionpolicies/README.md index 412b4d0aa4e..bd638814b53 100644 --- a/resource-manager/sql/2023-05-01-preview/longtermretentionpolicies/README.md +++ b/resource-manager/sql/2023-05-01-preview/longtermretentionpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/longtermretentionpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := longtermretentionpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := longtermretentionpolicies.LongTermRetentionPolicy{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := longtermretentionpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := longtermretentionpolicies.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/maintenancewindowoptions/README.md b/resource-manager/sql/2023-05-01-preview/maintenancewindowoptions/README.md index c4b60d3de1f..ebcb5e6818a 100644 --- a/resource-manager/sql/2023-05-01-preview/maintenancewindowoptions/README.md +++ b/resource-manager/sql/2023-05-01-preview/maintenancewindowoptions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/maintenancewindowoptions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := maintenancewindowoptions.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id, maintenancewindowoptions.DefaultGetOperationOptions()) if err != nil { diff --git a/resource-manager/sql/2023-05-01-preview/maintenancewindows/README.md b/resource-manager/sql/2023-05-01-preview/maintenancewindows/README.md index ce76dd72647..b64e6cc4af5 100644 --- a/resource-manager/sql/2023-05-01-preview/maintenancewindows/README.md +++ b/resource-manager/sql/2023-05-01-preview/maintenancewindows/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/maintenancewindows" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := maintenancewindows.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := maintenancewindows.MaintenanceWindows{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenancewindows.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id, maintenancewindows.DefaultGetOperationOptions()) if err != nil { diff --git a/resource-manager/sql/2023-05-01-preview/managedbackupshorttermretentionpolicies/README.md b/resource-manager/sql/2023-05-01-preview/managedbackupshorttermretentionpolicies/README.md index 353c6fd1504..497a8f3d50e 100644 --- a/resource-manager/sql/2023-05-01-preview/managedbackupshorttermretentionpolicies/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedbackupshorttermretentionpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedbackupshorttermretentionpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedbackupshorttermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := managedbackupshorttermretentionpolicies.ManagedBackupShortTermRetentionPolicy{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedbackupshorttermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedbackupshorttermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) @@ -74,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedbackupshorttermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := managedbackupshorttermretentionpolicies.ManagedBackupShortTermRetentionPolicy{ // ... diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabaseadvancedthreatprotectionsettings/README.md b/resource-manager/sql/2023-05-01-preview/manageddatabaseadvancedthreatprotectionsettings/README.md index be53757ca8c..372bffd08d3 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabaseadvancedthreatprotectionsettings/README.md +++ b/resource-manager/sql/2023-05-01-preview/manageddatabaseadvancedthreatprotectionsettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/manageddatabaseadvancedthreatprotectionsettings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := manageddatabaseadvancedthreatprotectionsettings.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabaseadvancedthreatprotectionsettings.ManagedDatabaseAdvancedThreatProtection{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabaseadvancedthreatprotectionsettings.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabaseadvancedthreatprotectionsettings.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasecolumns/README.md b/resource-manager/sql/2023-05-01-preview/manageddatabasecolumns/README.md index fc83c255f62..969f21859df 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasecolumns/README.md +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasecolumns/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/manageddatabasecolumns" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasecolumns.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id, manageddatabasecolumns.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id, manageddatabasecolumns.DefaultListByDatabaseOperationOptions()) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabaserestoredetails/README.md b/resource-manager/sql/2023-05-01-preview/manageddatabaserestoredetails/README.md index 1d9cb5f3ddc..8fdfff1652d 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabaserestoredetails/README.md +++ b/resource-manager/sql/2023-05-01-preview/manageddatabaserestoredetails/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/manageddatabaserestoredetails" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := manageddatabaserestoredetails.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabases/README.md b/resource-manager/sql/2023-05-01-preview/manageddatabases/README.md index d175ce49d8c..1093d7b2fc0 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabases/README.md +++ b/resource-manager/sql/2023-05-01-preview/manageddatabases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/manageddatabases" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabases.ManagedDatabaseMoveDefinition{ // ... @@ -41,7 +42,7 @@ if err := client.CancelMoveThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabases.ManagedDatabaseMoveDefinition{ // ... @@ -58,7 +59,7 @@ if err := client.CompleteMoveThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabases.CompleteDatabaseRestoreDefinition{ // ... @@ -75,7 +76,7 @@ if err := client.CompleteRestoreThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabases.ManagedDatabase{ // ... @@ -92,7 +93,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -104,7 +105,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -120,7 +121,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) @@ -137,7 +138,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListInaccessibleByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListInaccessibleByInstanceComplete(ctx, id) @@ -154,7 +155,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabases.ManagedDatabaseStartMoveDefinition{ // ... @@ -171,7 +172,7 @@ if err := client.StartMoveThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := manageddatabases.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabases.ManagedDatabaseUpdate{ // ... diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabaseschemas/README.md b/resource-manager/sql/2023-05-01-preview/manageddatabaseschemas/README.md index e7f8fa24662..3fbe4861a29 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabaseschemas/README.md +++ b/resource-manager/sql/2023-05-01-preview/manageddatabaseschemas/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/manageddatabaseschemas" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabaseschemas.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id, manageddatabaseschemas.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id, manageddatabaseschemas.DefaultListByDatabaseOperationOptions()) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityalertpolicies/README.md b/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityalertpolicies/README.md index 797f6159d20..696c8ab48de 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityalertpolicies/README.md +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityalertpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityalertpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := manageddatabasesecurityalertpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabasesecurityalertpolicies.ManagedDatabaseSecurityAlertPolicy{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasesecurityalertpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasesecurityalertpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityevents/README.md b/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityevents/README.md index e584580b9bf..61064f5b8fc 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityevents/README.md +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityevents/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityevents" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := manageddatabasesecurityevents.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id, manageddatabasesecurityevents.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id, manageddatabasesecurityevents.DefaultListByDatabaseOperationOptions()) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/README.md b/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/README.md index 8d4a87cc23b..dc94bdbac51 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/README.md +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels" ``` @@ -109,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasesensitivitylabels.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id, manageddatabasesensitivitylabels.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id, manageddatabasesensitivitylabels.DefaultListByDatabaseOperationOptions()) @@ -126,7 +127,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := manageddatabasesensitivitylabels.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListCurrentByDatabase(ctx, id, manageddatabasesensitivitylabels.DefaultListCurrentByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListCurrentByDatabaseComplete(ctx, id, manageddatabasesensitivitylabels.DefaultListCurrentByDatabaseOperationOptions()) @@ -143,7 +144,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := manageddatabasesensitivitylabels.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListRecommendedByDatabase(ctx, id, manageddatabasesensitivitylabels.DefaultListRecommendedByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListRecommendedByDatabaseComplete(ctx, id, manageddatabasesensitivitylabels.DefaultListRecommendedByDatabaseOperationOptions()) @@ -160,7 +161,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := manageddatabasesensitivitylabels.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabasesensitivitylabels.RecommendedSensitivityLabelUpdateList{ // ... @@ -181,7 +182,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasesensitivitylabels.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabasesensitivitylabels.SensitivityLabelUpdateList{ // ... diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasetransparentdataencryption/README.md b/resource-manager/sql/2023-05-01-preview/manageddatabasetransparentdataencryption/README.md index 9b69ca94c5a..eb5318384c4 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasetransparentdataencryption/README.md +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasetransparentdataencryption/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/manageddatabasetransparentdataencryption" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := manageddatabasetransparentdataencryption.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabasetransparentdataencryption.ManagedTransparentDataEncryption{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasetransparentdataencryption.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasetransparentdataencryption.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessments/README.md b/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessments/README.md index 7c37c893f5a..940ba0a4702 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessments/README.md +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessments" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := manageddatabasevulnerabilityassessments.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := manageddatabasevulnerabilityassessments.DatabaseVulnerabilityAssessment{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasevulnerabilityassessments.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasevulnerabilityassessments.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := manageddatabasevulnerabilityassessments.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessmentscans/README.md b/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessmentscans/README.md index 38d892b0b30..54108fa6863 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessmentscans/README.md +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessmentscans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessmentscans" ``` @@ -68,7 +69,7 @@ if err := client.InitiateScanThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := manageddatabasevulnerabilityassessmentscans.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstanceadministrators/README.md b/resource-manager/sql/2023-05-01-preview/managedinstanceadministrators/README.md index 9ba732de421..5f42784d960 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstanceadministrators/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedinstanceadministrators/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedinstanceadministrators" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstanceadministrators.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstanceadministrators.ManagedInstanceAdministrator{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedinstanceadministrators.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedinstanceadministrators.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstanceadministrators.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstanceadvancedthreatprotectionsettings/README.md b/resource-manager/sql/2023-05-01-preview/managedinstanceadvancedthreatprotectionsettings/README.md index 2a6402bb9af..524ae188871 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstanceadvancedthreatprotectionsettings/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedinstanceadvancedthreatprotectionsettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedinstanceadvancedthreatprotectionsettings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstanceadvancedthreatprotectionsettings.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstanceadvancedthreatprotectionsettings.ManagedInstanceAdvancedThreatProtection{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedinstanceadvancedthreatprotectionsettings.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstanceadvancedthreatprotectionsettings.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstanceazureadonlyauthentications/README.md b/resource-manager/sql/2023-05-01-preview/managedinstanceazureadonlyauthentications/README.md index 9321c9fae09..921a5563fff 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstanceazureadonlyauthentications/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedinstanceazureadonlyauthentications/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedinstanceazureadonlyauthentications" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstanceazureadonlyauthentications.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstanceazureadonlyauthentications.ManagedInstanceAzureADOnlyAuthentication{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedinstanceazureadonlyauthentications.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedinstanceazureadonlyauthentications.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstanceazureadonlyauthentications.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstancedtcs/README.md b/resource-manager/sql/2023-05-01-preview/managedinstancedtcs/README.md index 060ebef29c3..1b1d3a843de 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstancedtcs/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedinstancedtcs/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedinstancedtcs" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstancedtcs.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstancedtcs.ManagedInstanceDtc{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedinstancedtcs.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstancedtcs.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByManagedInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstanceencryptionprotectors/README.md b/resource-manager/sql/2023-05-01-preview/managedinstanceencryptionprotectors/README.md index dc6a9e39b91..04f282e246f 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstanceencryptionprotectors/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedinstanceencryptionprotectors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedinstanceencryptionprotectors" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstanceencryptionprotectors.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstanceencryptionprotectors.ManagedInstanceEncryptionProtector{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedinstanceencryptionprotectors.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstanceencryptionprotectors.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) @@ -74,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedinstanceencryptionprotectors.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.RevalidateThenPoll(ctx, id); err != nil { // handle the error diff --git a/resource-manager/sql/2023-05-01-preview/managedinstancekeys/README.md b/resource-manager/sql/2023-05-01-preview/managedinstancekeys/README.md index 4c471752697..bd790bfc051 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstancekeys/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedinstancekeys/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedinstancekeys" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstancekeys.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id, managedinstancekeys.DefaultListByInstanceOperationOptions())` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id, managedinstancekeys.DefaultListByInstanceOperationOptions()) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstancelongtermretentionpolicies/README.md b/resource-manager/sql/2023-05-01-preview/managedinstancelongtermretentionpolicies/README.md index 055e51dcb47..c1d558166e8 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstancelongtermretentionpolicies/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedinstancelongtermretentionpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedinstancelongtermretentionpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstancelongtermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := managedinstancelongtermretentionpolicies.ManagedInstanceLongTermRetentionPolicy{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedinstancelongtermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedinstancelongtermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstancelongtermretentionpolicies.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstanceoperations/README.md b/resource-manager/sql/2023-05-01-preview/managedinstanceoperations/README.md index c980996a525..68f2a178684 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstanceoperations/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedinstanceoperations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedinstanceoperations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstanceoperations.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByManagedInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstanceprivateendpointconnections/README.md b/resource-manager/sql/2023-05-01-preview/managedinstanceprivateendpointconnections/README.md index 95f5c6a78b3..44b1dd53dad 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstanceprivateendpointconnections/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedinstanceprivateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedinstanceprivateendpointconnections" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstanceprivateendpointconnections.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByManagedInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstanceprivatelinkresources/README.md b/resource-manager/sql/2023-05-01-preview/managedinstanceprivatelinkresources/README.md index 4e962945cf1..07c089f4605 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstanceprivatelinkresources/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedinstanceprivatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedinstanceprivatelinkresources" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstanceprivatelinkresources.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByManagedInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstances/README.md b/resource-manager/sql/2023-05-01-preview/managedinstances/README.md index a4998126a88..2cb7aeef5ea 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstances/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedinstances/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedinstances" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstances.ManagedInstance{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.FailoverThenPoll(ctx, id, managedinstances.DefaultFailoverOperationOptions()); err != nil { // handle the error @@ -65,7 +66,7 @@ if err := client.FailoverThenPoll(ctx, id, managedinstances.DefaultFailoverOpera ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id, managedinstances.DefaultGetOperationOptions()) if err != nil { @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstances.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, managedinstances.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, managedinstances.DefaultListOperationOptions()) @@ -115,7 +116,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByManagedInstance(ctx, id, managedinstances.DefaultListByManagedInstanceOperationOptions())` can be used to do batched pagination items, err := client.ListByManagedInstanceComplete(ctx, id, managedinstances.DefaultListByManagedInstanceOperationOptions()) @@ -132,7 +133,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedinstances.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, managedinstances.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, managedinstances.DefaultListByResourceGroupOperationOptions()) @@ -149,7 +150,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListOutboundNetworkDependenciesByManagedInstance(ctx, id)` can be used to do batched pagination items, err := client.ListOutboundNetworkDependenciesByManagedInstanceComplete(ctx, id) @@ -166,7 +167,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.RefreshStatusThenPoll(ctx, id); err != nil { // handle the error @@ -178,7 +179,7 @@ if err := client.RefreshStatusThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -190,7 +191,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -202,7 +203,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedinstances.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstances.ManagedInstanceUpdate{ // ... diff --git a/resource-manager/sql/2023-05-01-preview/managedinstancetdecertificates/README.md b/resource-manager/sql/2023-05-01-preview/managedinstancetdecertificates/README.md index b53b3d61f00..25e33150399 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstancetdecertificates/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedinstancetdecertificates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedinstancetdecertificates" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstancetdecertificates.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstancetdecertificates.TdeCertificate{ // ... diff --git a/resource-manager/sql/2023-05-01-preview/managedinstancevulnerabilityassessments/README.md b/resource-manager/sql/2023-05-01-preview/managedinstancevulnerabilityassessments/README.md index fbc38424194..c48a828fb71 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstancevulnerabilityassessments/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedinstancevulnerabilityassessments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedinstancevulnerabilityassessments" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstancevulnerabilityassessments.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedinstancevulnerabilityassessments.ManagedInstanceVulnerabilityAssessment{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstancevulnerabilityassessments.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstancevulnerabilityassessments.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedinstancevulnerabilityassessments.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/managedledgerdigestuploads/README.md b/resource-manager/sql/2023-05-01-preview/managedledgerdigestuploads/README.md index e31fff164e1..540c762a57f 100644 --- a/resource-manager/sql/2023-05-01-preview/managedledgerdigestuploads/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedledgerdigestuploads/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedledgerdigestuploads" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedledgerdigestuploads.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") payload := managedledgerdigestuploads.ManagedLedgerDigestUploads{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedledgerdigestuploads.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") if err := client.DisableThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DisableThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedledgerdigestuploads.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedledgerdigestuploads.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/managedserverdnsaliases/README.md b/resource-manager/sql/2023-05-01-preview/managedserverdnsaliases/README.md index c592c9bbd74..91b83acfd7c 100644 --- a/resource-manager/sql/2023-05-01-preview/managedserverdnsaliases/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedserverdnsaliases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedserverdnsaliases" ``` @@ -86,7 +87,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedserverdnsaliases.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByManagedInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/managedserversecurityalertpolicies/README.md b/resource-manager/sql/2023-05-01-preview/managedserversecurityalertpolicies/README.md index 092957c6fce..aa4a9c2ce8a 100644 --- a/resource-manager/sql/2023-05-01-preview/managedserversecurityalertpolicies/README.md +++ b/resource-manager/sql/2023-05-01-preview/managedserversecurityalertpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/managedserversecurityalertpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedserversecurityalertpolicies.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := managedserversecurityalertpolicies.ManagedServerSecurityAlertPolicy{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedserversecurityalertpolicies.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedserversecurityalertpolicies.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/networksecurityperimeterconfigurations/README.md b/resource-manager/sql/2023-05-01-preview/networksecurityperimeterconfigurations/README.md index ec51833c9ca..0c929dfc995 100644 --- a/resource-manager/sql/2023-05-01-preview/networksecurityperimeterconfigurations/README.md +++ b/resource-manager/sql/2023-05-01-preview/networksecurityperimeterconfigurations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/networksecurityperimeterconfigurations" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networksecurityperimeterconfigurations.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/outboundfirewallrules/README.md b/resource-manager/sql/2023-05-01-preview/outboundfirewallrules/README.md index e5ccc5d859c..4957ac0750d 100644 --- a/resource-manager/sql/2023-05-01-preview/outboundfirewallrules/README.md +++ b/resource-manager/sql/2023-05-01-preview/outboundfirewallrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/outboundfirewallrules" ``` @@ -64,7 +65,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := outboundfirewallrules.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/privateendpointconnections/README.md b/resource-manager/sql/2023-05-01-preview/privateendpointconnections/README.md index e5804c6a9c7..cf4909aeb09 100644 --- a/resource-manager/sql/2023-05-01-preview/privateendpointconnections/README.md +++ b/resource-manager/sql/2023-05-01-preview/privateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/privateendpointconnections" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/privatelinkresources/README.md b/resource-manager/sql/2023-05-01-preview/privatelinkresources/README.md index 8d572d0dad6..3d9668dae56 100644 --- a/resource-manager/sql/2023-05-01-preview/privatelinkresources/README.md +++ b/resource-manager/sql/2023-05-01-preview/privatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/privatelinkresources" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkresources.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/recoverabledatabases/README.md b/resource-manager/sql/2023-05-01-preview/recoverabledatabases/README.md index 6dde1456d68..8c93f71aae3 100644 --- a/resource-manager/sql/2023-05-01-preview/recoverabledatabases/README.md +++ b/resource-manager/sql/2023-05-01-preview/recoverabledatabases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/recoverabledatabases" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recoverabledatabases.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/recoverablemanageddatabases/README.md b/resource-manager/sql/2023-05-01-preview/recoverablemanageddatabases/README.md index 586803ce3c6..2a5b9c7d57f 100644 --- a/resource-manager/sql/2023-05-01-preview/recoverablemanageddatabases/README.md +++ b/resource-manager/sql/2023-05-01-preview/recoverablemanageddatabases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/recoverablemanageddatabases" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recoverablemanageddatabases.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/replicationlinks/README.md b/resource-manager/sql/2023-05-01-preview/replicationlinks/README.md index ff61b364f96..31097e1c233 100644 --- a/resource-manager/sql/2023-05-01-preview/replicationlinks/README.md +++ b/resource-manager/sql/2023-05-01-preview/replicationlinks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/replicationlinks" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := replicationlinks.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) @@ -110,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationlinks.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/restorabledroppeddatabases/README.md b/resource-manager/sql/2023-05-01-preview/restorabledroppeddatabases/README.md index 2d179095d4a..bec04801c17 100644 --- a/resource-manager/sql/2023-05-01-preview/restorabledroppeddatabases/README.md +++ b/resource-manager/sql/2023-05-01-preview/restorabledroppeddatabases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/restorabledroppeddatabases" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorabledroppeddatabases.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/restorabledroppedmanageddatabases/README.md b/resource-manager/sql/2023-05-01-preview/restorabledroppedmanageddatabases/README.md index 00a0a57417d..936bc90dbc6 100644 --- a/resource-manager/sql/2023-05-01-preview/restorabledroppedmanageddatabases/README.md +++ b/resource-manager/sql/2023-05-01-preview/restorabledroppedmanageddatabases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/restorabledroppedmanageddatabases" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorabledroppedmanageddatabases.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/restorepoints/README.md b/resource-manager/sql/2023-05-01-preview/restorepoints/README.md index fb989369204..2693d09c529 100644 --- a/resource-manager/sql/2023-05-01-preview/restorepoints/README.md +++ b/resource-manager/sql/2023-05-01-preview/restorepoints/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/restorepoints" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := restorepoints.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := restorepoints.CreateDatabaseRestorePointDefinition{ // ... @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorepoints.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/sensitivitylabels/README.md b/resource-manager/sql/2023-05-01-preview/sensitivitylabels/README.md index 05a475c8fb9..f801f84f96a 100644 --- a/resource-manager/sql/2023-05-01-preview/sensitivitylabels/README.md +++ b/resource-manager/sql/2023-05-01-preview/sensitivitylabels/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/sensitivitylabels" ``` @@ -109,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sensitivitylabels.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id, sensitivitylabels.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id, sensitivitylabels.DefaultListByDatabaseOperationOptions()) @@ -126,7 +127,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sensitivitylabels.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListCurrentByDatabase(ctx, id, sensitivitylabels.DefaultListCurrentByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListCurrentByDatabaseComplete(ctx, id, sensitivitylabels.DefaultListCurrentByDatabaseOperationOptions()) @@ -143,7 +144,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sensitivitylabels.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListRecommendedByDatabase(ctx, id, sensitivitylabels.DefaultListRecommendedByDatabaseOperationOptions())` can be used to do batched pagination items, err := client.ListRecommendedByDatabaseComplete(ctx, id, sensitivitylabels.DefaultListRecommendedByDatabaseOperationOptions()) @@ -160,7 +161,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sensitivitylabels.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := sensitivitylabels.RecommendedSensitivityLabelUpdateList{ // ... @@ -181,7 +182,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sensitivitylabels.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := sensitivitylabels.SensitivityLabelUpdateList{ // ... diff --git a/resource-manager/sql/2023-05-01-preview/serveradvancedthreatprotectionsettings/README.md b/resource-manager/sql/2023-05-01-preview/serveradvancedthreatprotectionsettings/README.md index 4ac344025b0..59a2853fd14 100644 --- a/resource-manager/sql/2023-05-01-preview/serveradvancedthreatprotectionsettings/README.md +++ b/resource-manager/sql/2023-05-01-preview/serveradvancedthreatprotectionsettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/serveradvancedthreatprotectionsettings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serveradvancedthreatprotectionsettings.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := serveradvancedthreatprotectionsettings.ServerAdvancedThreatProtection{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serveradvancedthreatprotectionsettings.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serveradvancedthreatprotectionsettings.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/serveradvisors/README.md b/resource-manager/sql/2023-05-01-preview/serveradvisors/README.md index 5114e33e974..cd1d9a1683c 100644 --- a/resource-manager/sql/2023-05-01-preview/serveradvisors/README.md +++ b/resource-manager/sql/2023-05-01-preview/serveradvisors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/serveradvisors" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serveradvisors.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.ListByServer(ctx, id, serveradvisors.DefaultListByServerOperationOptions()) if err != nil { diff --git a/resource-manager/sql/2023-05-01-preview/serverautomatictuning/README.md b/resource-manager/sql/2023-05-01-preview/serverautomatictuning/README.md index 081a7ffc094..dc8e88ad394 100644 --- a/resource-manager/sql/2023-05-01-preview/serverautomatictuning/README.md +++ b/resource-manager/sql/2023-05-01-preview/serverautomatictuning/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/serverautomatictuning" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverautomatictuning.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverautomatictuning.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := serverautomatictuning.ServerAutomaticTuning{ // ... diff --git a/resource-manager/sql/2023-05-01-preview/serverazureadadministrators/README.md b/resource-manager/sql/2023-05-01-preview/serverazureadadministrators/README.md index 0046a781e7e..622f600f28b 100644 --- a/resource-manager/sql/2023-05-01-preview/serverazureadadministrators/README.md +++ b/resource-manager/sql/2023-05-01-preview/serverazureadadministrators/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/serverazureadadministrators" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverazureadadministrators.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := serverazureadadministrators.ServerAzureADAdministrator{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serverazureadadministrators.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := serverazureadadministrators.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverazureadadministrators.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/serverazureadonlyauthentications/README.md b/resource-manager/sql/2023-05-01-preview/serverazureadonlyauthentications/README.md index 57193f18317..4b81e7e32b5 100644 --- a/resource-manager/sql/2023-05-01-preview/serverazureadonlyauthentications/README.md +++ b/resource-manager/sql/2023-05-01-preview/serverazureadonlyauthentications/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/serverazureadonlyauthentications" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverazureadonlyauthentications.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := serverazureadonlyauthentications.ServerAzureADOnlyAuthentication{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serverazureadonlyauthentications.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := serverazureadonlyauthentications.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverazureadonlyauthentications.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/serverconfigurationoptions/README.md b/resource-manager/sql/2023-05-01-preview/serverconfigurationoptions/README.md index 654a7df1ee0..4d390d7234c 100644 --- a/resource-manager/sql/2023-05-01-preview/serverconfigurationoptions/README.md +++ b/resource-manager/sql/2023-05-01-preview/serverconfigurationoptions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/serverconfigurationoptions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverconfigurationoptions.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := serverconfigurationoptions.ServerConfigurationOption{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serverconfigurationoptions.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverconfigurationoptions.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByManagedInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/serverconnectionpolicies/README.md b/resource-manager/sql/2023-05-01-preview/serverconnectionpolicies/README.md index 449bccd3f7f..d7211b18d48 100644 --- a/resource-manager/sql/2023-05-01-preview/serverconnectionpolicies/README.md +++ b/resource-manager/sql/2023-05-01-preview/serverconnectionpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/serverconnectionpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverconnectionpolicies.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := serverconnectionpolicies.ServerConnectionPolicy{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serverconnectionpolicies.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverconnectionpolicies.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/serverdevopsaudit/README.md b/resource-manager/sql/2023-05-01-preview/serverdevopsaudit/README.md index 627440cb1fd..c84d7388841 100644 --- a/resource-manager/sql/2023-05-01-preview/serverdevopsaudit/README.md +++ b/resource-manager/sql/2023-05-01-preview/serverdevopsaudit/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/serverdevopsaudit" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverdevopsaudit.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := serverdevopsaudit.ServerDevOpsAuditingSettings{ // ... @@ -41,7 +42,7 @@ if err := client.SettingsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serverdevopsaudit.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.SettingsGet(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverdevopsaudit.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.SettingsListByServer(ctx, id)` can be used to do batched pagination items, err := client.SettingsListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/serverdnsaliases/README.md b/resource-manager/sql/2023-05-01-preview/serverdnsaliases/README.md index d223652484a..568dad714d3 100644 --- a/resource-manager/sql/2023-05-01-preview/serverdnsaliases/README.md +++ b/resource-manager/sql/2023-05-01-preview/serverdnsaliases/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/serverdnsaliases" ``` @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverdnsaliases.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/serverkeys/README.md b/resource-manager/sql/2023-05-01-preview/serverkeys/README.md index 16b1e16cc22..2ba9485bf59 100644 --- a/resource-manager/sql/2023-05-01-preview/serverkeys/README.md +++ b/resource-manager/sql/2023-05-01-preview/serverkeys/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/serverkeys" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverkeys.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/serveroperations/README.md b/resource-manager/sql/2023-05-01-preview/serveroperations/README.md index a05e9c70fd9..8b1ba481576 100644 --- a/resource-manager/sql/2023-05-01-preview/serveroperations/README.md +++ b/resource-manager/sql/2023-05-01-preview/serveroperations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/serveroperations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serveroperations.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/servers/README.md b/resource-manager/sql/2023-05-01-preview/servers/README.md index 49b519b8b23..0aae1f8fd1b 100644 --- a/resource-manager/sql/2023-05-01-preview/servers/README.md +++ b/resource-manager/sql/2023-05-01-preview/servers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/servers" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := servers.CheckNameAvailabilityRequest{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := servers.Server{ // ... @@ -62,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := servers.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -74,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := servers.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id, servers.DefaultGetOperationOptions()) if err != nil { @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := servers.ImportNewDatabaseDefinition{ // ... @@ -107,7 +108,7 @@ if err := client.ImportDatabaseThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := servers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, servers.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, servers.DefaultListOperationOptions()) @@ -124,7 +125,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, servers.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, servers.DefaultListByResourceGroupOperationOptions()) @@ -141,7 +142,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servers.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") if err := client.RefreshStatusThenPoll(ctx, id); err != nil { // handle the error @@ -153,7 +154,7 @@ if err := client.RefreshStatusThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := servers.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := servers.ServerUpdate{ // ... diff --git a/resource-manager/sql/2023-05-01-preview/serversecurityalertpolicies/README.md b/resource-manager/sql/2023-05-01-preview/serversecurityalertpolicies/README.md index 7c8518b932f..e3df8193344 100644 --- a/resource-manager/sql/2023-05-01-preview/serversecurityalertpolicies/README.md +++ b/resource-manager/sql/2023-05-01-preview/serversecurityalertpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/serversecurityalertpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serversecurityalertpolicies.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := serversecurityalertpolicies.ServerSecurityAlertPolicy{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serversecurityalertpolicies.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serversecurityalertpolicies.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/servertrustcertificates/README.md b/resource-manager/sql/2023-05-01-preview/servertrustcertificates/README.md index f42da4878f8..83a52f7832b 100644 --- a/resource-manager/sql/2023-05-01-preview/servertrustcertificates/README.md +++ b/resource-manager/sql/2023-05-01-preview/servertrustcertificates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/servertrustcertificates" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servertrustcertificates.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/servertrustgroups/README.md b/resource-manager/sql/2023-05-01-preview/servertrustgroups/README.md index 9426c80f8ed..5cfbeeed0f3 100644 --- a/resource-manager/sql/2023-05-01-preview/servertrustgroups/README.md +++ b/resource-manager/sql/2023-05-01-preview/servertrustgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/servertrustgroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servertrustgroups.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/serverusages/README.md b/resource-manager/sql/2023-05-01-preview/serverusages/README.md index 116da844232..8eb73e57e3e 100644 --- a/resource-manager/sql/2023-05-01-preview/serverusages/README.md +++ b/resource-manager/sql/2023-05-01-preview/serverusages/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/serverusages" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverusages.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/servervulnerabilityassessments/README.md b/resource-manager/sql/2023-05-01-preview/servervulnerabilityassessments/README.md index 7fa64da801f..dec011d1d91 100644 --- a/resource-manager/sql/2023-05-01-preview/servervulnerabilityassessments/README.md +++ b/resource-manager/sql/2023-05-01-preview/servervulnerabilityassessments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/servervulnerabilityassessments" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servervulnerabilityassessments.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := servervulnerabilityassessments.ServerVulnerabilityAssessment{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servervulnerabilityassessments.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servervulnerabilityassessments.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servervulnerabilityassessments.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/sqlagent/README.md b/resource-manager/sql/2023-05-01-preview/sqlagent/README.md index 8b5f27d89ba..67411102752 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlagent/README.md +++ b/resource-manager/sql/2023-05-01-preview/sqlagent/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/sqlagent" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sqlagent.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := sqlagent.SqlAgentConfiguration{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlagent.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/README.md b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/README.md index bc6ee59e61a..f221558b418 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/README.md +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentbaseline.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := sqlvulnerabilityassessmentbaseline.DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentbaseline.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id, sqlvulnerabilityassessmentbaseline.DefaultGetOperationOptions()) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentbaseline.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListBySqlVulnerabilityAssessment(ctx, id, sqlvulnerabilityassessmentbaseline.DefaultListBySqlVulnerabilityAssessmentOperationOptions())` can be used to do batched pagination items, err := client.ListBySqlVulnerabilityAssessmentComplete(ctx, id, sqlvulnerabilityassessmentbaseline.DefaultListBySqlVulnerabilityAssessmentOperationOptions()) diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/README.md b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/README.md index df643981d23..2207afee906 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/README.md +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentrulebaseline.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByBaseline(ctx, id, sqlvulnerabilityassessmentrulebaseline.DefaultListByBaselineOperationOptions())` can be used to do batched pagination items, err := client.ListByBaselineComplete(ctx, id, sqlvulnerabilityassessmentrulebaseline.DefaultListByBaselineOperationOptions()) diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscans/README.md b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscans/README.md index 8aafd4ccc70..7afefacdb45 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscans/README.md +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscans" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentscans.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListBySqlVulnerabilityAssessments(ctx, id, sqlvulnerabilityassessmentscans.DefaultListBySqlVulnerabilityAssessmentsOperationOptions())` can be used to do batched pagination items, err := client.ListBySqlVulnerabilityAssessmentsComplete(ctx, id, sqlvulnerabilityassessmentscans.DefaultListBySqlVulnerabilityAssessmentsOperationOptions()) diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentssettings/README.md b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentssettings/README.md index dbd0e34921b..189f93f837a 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentssettings/README.md +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentssettings/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentssettings" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentssettings.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := sqlvulnerabilityassessmentssettings.SqlVulnerabilityAssessment{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentssettings.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentssettings.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -78,7 +79,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sqlvulnerabilityassessmentssettings.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") read, err := client.SqlVulnerabilityAssessmentsDelete(ctx, id) if err != nil { diff --git a/resource-manager/sql/2023-05-01-preview/startstopmanagedinstanceschedules/README.md b/resource-manager/sql/2023-05-01-preview/startstopmanagedinstanceschedules/README.md index 4e21c595dfa..d0701ad2e25 100644 --- a/resource-manager/sql/2023-05-01-preview/startstopmanagedinstanceschedules/README.md +++ b/resource-manager/sql/2023-05-01-preview/startstopmanagedinstanceschedules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/startstopmanagedinstanceschedules" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := startstopmanagedinstanceschedules.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") payload := startstopmanagedinstanceschedules.StartStopManagedInstanceSchedule{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := startstopmanagedinstanceschedules.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := startstopmanagedinstanceschedules.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := startstopmanagedinstanceschedules.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/synapselinkworkspaces/README.md b/resource-manager/sql/2023-05-01-preview/synapselinkworkspaces/README.md index 5b5471907cf..2fdb6f37378 100644 --- a/resource-manager/sql/2023-05-01-preview/synapselinkworkspaces/README.md +++ b/resource-manager/sql/2023-05-01-preview/synapselinkworkspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/synapselinkworkspaces" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := synapselinkworkspaces.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/syncagents/README.md b/resource-manager/sql/2023-05-01-preview/syncagents/README.md index e85c573079b..935f5886fe0 100644 --- a/resource-manager/sql/2023-05-01-preview/syncagents/README.md +++ b/resource-manager/sql/2023-05-01-preview/syncagents/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/syncagents" ``` @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := syncagents.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/syncgroups/README.md b/resource-manager/sql/2023-05-01-preview/syncgroups/README.md index 4a47d4e8dba..50fdf49d5e1 100644 --- a/resource-manager/sql/2023-05-01-preview/syncgroups/README.md +++ b/resource-manager/sql/2023-05-01-preview/syncgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/syncgroups" ``` @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := syncgroups.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/tdecertificates/README.md b/resource-manager/sql/2023-05-01-preview/tdecertificates/README.md index b3925af745b..2e0a093ee46 100644 --- a/resource-manager/sql/2023-05-01-preview/tdecertificates/README.md +++ b/resource-manager/sql/2023-05-01-preview/tdecertificates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/tdecertificates" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := tdecertificates.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") payload := tdecertificates.TdeCertificate{ // ... diff --git a/resource-manager/sql/2023-05-01-preview/transparentdataencryptions/README.md b/resource-manager/sql/2023-05-01-preview/transparentdataencryptions/README.md index 5a81c8fe684..b60d327a7a5 100644 --- a/resource-manager/sql/2023-05-01-preview/transparentdataencryptions/README.md +++ b/resource-manager/sql/2023-05-01-preview/transparentdataencryptions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/transparentdataencryptions" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := transparentdataencryptions.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") payload := transparentdataencryptions.LogicalDatabaseTransparentDataEncryption{ // ... @@ -41,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := transparentdataencryptions.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := transparentdataencryptions.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/virtualclusters/README.md b/resource-manager/sql/2023-05-01-preview/virtualclusters/README.md index 47e742abde6..3fca40e7aea 100644 --- a/resource-manager/sql/2023-05-01-preview/virtualclusters/README.md +++ b/resource-manager/sql/2023-05-01-preview/virtualclusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/virtualclusters" ``` @@ -52,7 +53,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualclusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -69,7 +70,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualclusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/virtualnetworkrules/README.md b/resource-manager/sql/2023-05-01-preview/virtualnetworkrules/README.md index ced7d01cf9c..b1486ce18e2 100644 --- a/resource-manager/sql/2023-05-01-preview/virtualnetworkrules/README.md +++ b/resource-manager/sql/2023-05-01-preview/virtualnetworkrules/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/virtualnetworkrules" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworkrules.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/resource-manager/sql/2023-05-01-preview/workloadgroups/README.md b/resource-manager/sql/2023-05-01-preview/workloadgroups/README.md index 4c01ced96cc..6918cfc564f 100644 --- a/resource-manager/sql/2023-05-01-preview/workloadgroups/README.md +++ b/resource-manager/sql/2023-05-01-preview/workloadgroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/workloadgroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workloadgroups.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachinegroups/README.md b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachinegroups/README.md index 1b5c905e2d4..4216463055c 100644 --- a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachinegroups/README.md +++ b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachinegroups/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachinegroups" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlvirtualmachinegroups.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sqlvirtualmachinegroups.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/README.md b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/README.md index 0c287f77f92..513cc23177a 100644 --- a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/README.md +++ b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sqlvirtualmachines.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sqlvirtualmachines.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/storage/2023-01-01/accountmigrations/README.md b/resource-manager/storage/2023-01-01/accountmigrations/README.md index 47bdf682573..7e01ae7f0d6 100644 --- a/resource-manager/storage/2023-01-01/accountmigrations/README.md +++ b/resource-manager/storage/2023-01-01/accountmigrations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := accountmigrations.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") payload := accountmigrations.StorageAccountMigration{ // ... @@ -41,7 +42,7 @@ if err := client.StorageAccountsCustomerInitiatedMigrationThenPoll(ctx, id, payl ```go ctx := context.TODO() -id := accountmigrations.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.StorageAccountsGetCustomerInitiatedMigration(ctx, id) if err != nil { diff --git a/resource-manager/storage/2023-01-01/blobcontainers/README.md b/resource-manager/storage/2023-01-01/blobcontainers/README.md index 2b9e74399d4..d8001ed8b49 100644 --- a/resource-manager/storage/2023-01-01/blobcontainers/README.md +++ b/resource-manager/storage/2023-01-01/blobcontainers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") payload := blobcontainers.LegalHold{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") payload := blobcontainers.BlobContainer{ // ... @@ -66,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") payload := blobcontainers.ImmutabilityPolicy{ // ... @@ -87,7 +88,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") read, err := client.Delete(ctx, id) if err != nil { @@ -103,7 +104,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") read, err := client.DeleteImmutabilityPolicy(ctx, id, blobcontainers.DefaultDeleteImmutabilityPolicyOperationOptions()) if err != nil { @@ -119,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") payload := blobcontainers.ImmutabilityPolicy{ // ... @@ -140,7 +141,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") read, err := client.Get(ctx, id) if err != nil { @@ -156,7 +157,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") read, err := client.GetImmutabilityPolicy(ctx, id, blobcontainers.DefaultGetImmutabilityPolicyOperationOptions()) if err != nil { @@ -172,7 +173,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") payload := blobcontainers.LeaseContainerRequest{ // ... @@ -193,7 +194,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobcontainers.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") // alternatively `client.List(ctx, id, blobcontainers.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, blobcontainers.DefaultListOperationOptions()) @@ -210,7 +211,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") read, err := client.LockImmutabilityPolicy(ctx, id, blobcontainers.DefaultLockImmutabilityPolicyOperationOptions()) if err != nil { @@ -226,7 +227,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") if err := client.ObjectLevelWormThenPoll(ctx, id); err != nil { // handle the error @@ -238,7 +239,7 @@ if err := client.ObjectLevelWormThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") payload := blobcontainers.LegalHold{ // ... @@ -259,7 +260,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") payload := blobcontainers.BlobContainer{ // ... diff --git a/resource-manager/storage/2023-01-01/blobinventorypolicies/README.md b/resource-manager/storage/2023-01-01/blobinventorypolicies/README.md index f3d2ace6e4d..311fa2bf884 100644 --- a/resource-manager/storage/2023-01-01/blobinventorypolicies/README.md +++ b/resource-manager/storage/2023-01-01/blobinventorypolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := blobinventorypolicies.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") payload := blobinventorypolicies.BlobInventoryPolicy{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobinventorypolicies.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobinventorypolicies.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobinventorypolicies.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/storage/2023-01-01/blobservice/README.md b/resource-manager/storage/2023-01-01/blobservice/README.md index ad131a8e71a..9ebdcbc742b 100644 --- a/resource-manager/storage/2023-01-01/blobservice/README.md +++ b/resource-manager/storage/2023-01-01/blobservice/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := blobservice.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.GetServiceProperties(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobservice.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.List(ctx, id) if err != nil { @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blobservice.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") payload := blobservice.BlobServiceProperties{ // ... diff --git a/resource-manager/storage/2023-01-01/deletedaccounts/README.md b/resource-manager/storage/2023-01-01/deletedaccounts/README.md index 7c39ccb6efc..93c899a08fc 100644 --- a/resource-manager/storage/2023-01-01/deletedaccounts/README.md +++ b/resource-manager/storage/2023-01-01/deletedaccounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deletedaccounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/storage/2023-01-01/encryptionscopes/README.md b/resource-manager/storage/2023-01-01/encryptionscopes/README.md index 880a7db91b0..dfd329a3bdb 100644 --- a/resource-manager/storage/2023-01-01/encryptionscopes/README.md +++ b/resource-manager/storage/2023-01-01/encryptionscopes/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := encryptionscopes.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") // alternatively `client.List(ctx, id, encryptionscopes.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, encryptionscopes.DefaultListOperationOptions()) diff --git a/resource-manager/storage/2023-01-01/fileservice/README.md b/resource-manager/storage/2023-01-01/fileservice/README.md index 039c921ef14..8e915ef9e70 100644 --- a/resource-manager/storage/2023-01-01/fileservice/README.md +++ b/resource-manager/storage/2023-01-01/fileservice/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := fileservice.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.GetServiceProperties(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fileservice.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.List(ctx, id) if err != nil { @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fileservice.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") payload := fileservice.FileServiceProperties{ // ... diff --git a/resource-manager/storage/2023-01-01/fileshares/README.md b/resource-manager/storage/2023-01-01/fileshares/README.md index 2efb76d1030..33903a18a8b 100644 --- a/resource-manager/storage/2023-01-01/fileshares/README.md +++ b/resource-manager/storage/2023-01-01/fileshares/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares" ``` @@ -98,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fileshares.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") // alternatively `client.List(ctx, id, fileshares.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, fileshares.DefaultListOperationOptions()) diff --git a/resource-manager/storage/2023-01-01/localusers/README.md b/resource-manager/storage/2023-01-01/localusers/README.md index 4172090c0b8..d8d0f5948cc 100644 --- a/resource-manager/storage/2023-01-01/localusers/README.md +++ b/resource-manager/storage/2023-01-01/localusers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localusers.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/storage/2023-01-01/managementpolicies/README.md b/resource-manager/storage/2023-01-01/managementpolicies/README.md index fc7151773d4..83cdc3e510b 100644 --- a/resource-manager/storage/2023-01-01/managementpolicies/README.md +++ b/resource-manager/storage/2023-01-01/managementpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managementpolicies.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") payload := managementpolicies.ManagementPolicy{ // ... @@ -45,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementpolicies.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementpolicies.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.Get(ctx, id) if err != nil { diff --git a/resource-manager/storage/2023-01-01/objectreplicationpolicies/README.md b/resource-manager/storage/2023-01-01/objectreplicationpolicies/README.md index 394bb0f8f77..382b7712eb7 100644 --- a/resource-manager/storage/2023-01-01/objectreplicationpolicies/README.md +++ b/resource-manager/storage/2023-01-01/objectreplicationpolicies/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := objectreplicationpolicies.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/storage/2023-01-01/privateendpointconnections/README.md b/resource-manager/storage/2023-01-01/privateendpointconnections/README.md index 97ec51aed3c..35f8cbaed28 100644 --- a/resource-manager/storage/2023-01-01/privateendpointconnections/README.md +++ b/resource-manager/storage/2023-01-01/privateendpointconnections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections" ``` @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/storage/2023-01-01/privatelinkresources/README.md b/resource-manager/storage/2023-01-01/privatelinkresources/README.md index a07b6109c57..e6119768bc9 100644 --- a/resource-manager/storage/2023-01-01/privatelinkresources/README.md +++ b/resource-manager/storage/2023-01-01/privatelinkresources/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkresources.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.ListByStorageAccount(ctx, id) if err != nil { diff --git a/resource-manager/storage/2023-01-01/queueservice/README.md b/resource-manager/storage/2023-01-01/queueservice/README.md index e1f5aef42dd..d326c7b157a 100644 --- a/resource-manager/storage/2023-01-01/queueservice/README.md +++ b/resource-manager/storage/2023-01-01/queueservice/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := queueservice.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") // alternatively `client.QueueList(ctx, id, queueservice.DefaultQueueListOperationOptions())` can be used to do batched pagination items, err := client.QueueListComplete(ctx, id, queueservice.DefaultQueueListOperationOptions()) diff --git a/resource-manager/storage/2023-01-01/queueserviceproperties/README.md b/resource-manager/storage/2023-01-01/queueserviceproperties/README.md index 9cdbd4485eb..296ea37b88b 100644 --- a/resource-manager/storage/2023-01-01/queueserviceproperties/README.md +++ b/resource-manager/storage/2023-01-01/queueserviceproperties/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := queueserviceproperties.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.QueueServicesGetServiceProperties(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := queueserviceproperties.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.QueueServicesList(ctx, id) if err != nil { @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := queueserviceproperties.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") payload := queueserviceproperties.QueueServiceProperties{ // ... diff --git a/resource-manager/storage/2023-01-01/skus/README.md b/resource-manager/storage/2023-01-01/skus/README.md index 3b0007afb3d..6e20ff6578c 100644 --- a/resource-manager/storage/2023-01-01/skus/README.md +++ b/resource-manager/storage/2023-01-01/skus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := skus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id) if err != nil { diff --git a/resource-manager/storage/2023-01-01/storageaccounts/README.md b/resource-manager/storage/2023-01-01/storageaccounts/README.md index 076fd3e2c1a..af72ad8400e 100644 --- a/resource-manager/storage/2023-01-01/storageaccounts/README.md +++ b/resource-manager/storage/2023-01-01/storageaccounts/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") if err := client.AbortHierarchicalNamespaceMigrationThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +37,7 @@ if err := client.AbortHierarchicalNamespaceMigrationThenPoll(ctx, id); err != ni ```go ctx := context.TODO() -id := storageaccounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := storageaccounts.StorageAccountCheckNameAvailabilityParameters{ // ... @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") payload := storageaccounts.StorageAccountCreateParameters{ // ... @@ -74,7 +75,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.Delete(ctx, id) if err != nil { @@ -90,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") if err := client.FailoverThenPoll(ctx, id, storageaccounts.DefaultFailoverOperationOptions()); err != nil { // handle the error @@ -102,7 +103,7 @@ if err := client.FailoverThenPoll(ctx, id, storageaccounts.DefaultFailoverOperat ```go ctx := context.TODO() -id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.GetProperties(ctx, id, storageaccounts.DefaultGetPropertiesOperationOptions()) if err != nil { @@ -118,7 +119,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") if err := client.HierarchicalNamespaceMigrationThenPoll(ctx, id, storageaccounts.DefaultHierarchicalNamespaceMigrationOperationOptions()); err != nil { // handle the error @@ -130,7 +131,7 @@ if err := client.HierarchicalNamespaceMigrationThenPoll(ctx, id, storageaccounts ```go ctx := context.TODO() -id := storageaccounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -147,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") payload := storageaccounts.AccountSasParameters{ // ... @@ -168,7 +169,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storageaccounts.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -185,7 +186,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.ListKeys(ctx, id, storageaccounts.DefaultListKeysOperationOptions()) if err != nil { @@ -201,7 +202,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") payload := storageaccounts.ServiceSasParameters{ // ... @@ -222,7 +223,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") payload := storageaccounts.StorageAccountRegenerateKeyParameters{ // ... @@ -243,7 +244,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") payload := storageaccounts.BlobRestoreParameters{ // ... @@ -260,7 +261,7 @@ if err := client.RestoreBlobRangesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.RevokeUserDelegationKeys(ctx, id) if err != nil { @@ -276,7 +277,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") payload := storageaccounts.StorageAccountUpdateParameters{ // ... diff --git a/resource-manager/storage/2023-01-01/tableservice/README.md b/resource-manager/storage/2023-01-01/tableservice/README.md index 843c1c2d0a8..c791fc9fe76 100644 --- a/resource-manager/storage/2023-01-01/tableservice/README.md +++ b/resource-manager/storage/2023-01-01/tableservice/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tableservice.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") // alternatively `client.TableList(ctx, id)` can be used to do batched pagination items, err := client.TableListComplete(ctx, id) diff --git a/resource-manager/storage/2023-01-01/tableserviceproperties/README.md b/resource-manager/storage/2023-01-01/tableserviceproperties/README.md index ab2be6431a8..3c2f010bd7d 100644 --- a/resource-manager/storage/2023-01-01/tableserviceproperties/README.md +++ b/resource-manager/storage/2023-01-01/tableserviceproperties/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := tableserviceproperties.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.TableServicesGetServiceProperties(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tableserviceproperties.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") read, err := client.TableServicesList(ctx, id) if err != nil { @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tableserviceproperties.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") payload := tableserviceproperties.TableServiceProperties{ // ... diff --git a/resource-manager/storagecache/2023-05-01/amlfilesystems/README.md b/resource-manager/storagecache/2023-05-01/amlfilesystems/README.md index 0529c2be879..f65f94c1f1b 100644 --- a/resource-manager/storagecache/2023-05-01/amlfilesystems/README.md +++ b/resource-manager/storagecache/2023-05-01/amlfilesystems/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems" ``` @@ -61,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := amlfilesystems.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := amlfilesystems.AmlFilesystemSubnetInfo{ // ... @@ -127,7 +128,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := amlfilesystems.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := amlfilesystems.RequiredAmlFilesystemSubnetsSizeInfo{ // ... @@ -148,7 +149,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := amlfilesystems.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -165,7 +166,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := amlfilesystems.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/storagecache/2023-05-01/caches/README.md b/resource-manager/storagecache/2023-05-01/caches/README.md index 1022e3626ee..95e060eed94 100644 --- a/resource-manager/storagecache/2023-05-01/caches/README.md +++ b/resource-manager/storagecache/2023-05-01/caches/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches" ``` @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := caches.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -110,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := caches.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/storagecache/2023-05-01/skus/README.md b/resource-manager/storagecache/2023-05-01/skus/README.md index 8921aaf9435..83f7399336f 100644 --- a/resource-manager/storagecache/2023-05-01/skus/README.md +++ b/resource-manager/storagecache/2023-05-01/skus/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/skus" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := skus.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/storagecache/2023-05-01/usagemodels/README.md b/resource-manager/storagecache/2023-05-01/usagemodels/README.md index f2f0da2f8aa..282e0524289 100644 --- a/resource-manager/storagecache/2023-05-01/usagemodels/README.md +++ b/resource-manager/storagecache/2023-05-01/usagemodels/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/usagemodels" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := usagemodels.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/storagemover/2023-03-01/storagemovers/README.md b/resource-manager/storagemover/2023-03-01/storagemovers/README.md index cdb3b76faf2..9dfd009614d 100644 --- a/resource-manager/storagemover/2023-03-01/storagemovers/README.md +++ b/resource-manager/storagemover/2023-03-01/storagemovers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storagemovers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := storagemovers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/storagemover/2023-10-01/storagemovers/README.md b/resource-manager/storagemover/2023-10-01/storagemovers/README.md index b25af2ca1c8..b03fc8835b5 100644 --- a/resource-manager/storagemover/2023-10-01/storagemovers/README.md +++ b/resource-manager/storagemover/2023-10-01/storagemovers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-10-01/storagemovers" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storagemovers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := storagemovers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/storagepool/2021-08-01/diskpools/README.md b/resource-manager/storagepool/2021-08-01/diskpools/README.md index 81fbb8954ad..482a7455ef7 100644 --- a/resource-manager/storagepool/2021-08-01/diskpools/README.md +++ b/resource-manager/storagepool/2021-08-01/diskpools/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storagepool/2021-08-01/diskpools" ``` @@ -81,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diskpools.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -98,7 +99,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diskpools.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/README.md b/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/README.md index adbc2106b16..08fd015b732 100644 --- a/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/README.md +++ b/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storagesyncservicesresource.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.StorageSyncServicesListByResourceGroup(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storagesyncservicesresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.StorageSyncServicesListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/storagesync/2022-09-01/storagesyncservicesresource/README.md b/resource-manager/storagesync/2022-09-01/storagesyncservicesresource/README.md index 9c12cb34ed7..27d25d9d2f6 100644 --- a/resource-manager/storagesync/2022-09-01/storagesyncservicesresource/README.md +++ b/resource-manager/storagesync/2022-09-01/storagesyncservicesresource/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2022-09-01/storagesyncservicesresource" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storagesyncservicesresource.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.StorageSyncServicesListByResourceGroup(ctx, id) if err != nil { @@ -85,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storagesyncservicesresource.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.StorageSyncServicesListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/streamanalytics/2020-03-01/clusters/README.md b/resource-manager/streamanalytics/2020-03-01/clusters/README.md index 30893f526bf..6c1638f9038 100644 --- a/resource-manager/streamanalytics/2020-03-01/clusters/README.md +++ b/resource-manager/streamanalytics/2020-03-01/clusters/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/streamanalytics/2020-03-01/streamingjobs/README.md b/resource-manager/streamanalytics/2020-03-01/streamingjobs/README.md index 285b5bd6932..ba812db6b5c 100644 --- a/resource-manager/streamanalytics/2020-03-01/streamingjobs/README.md +++ b/resource-manager/streamanalytics/2020-03-01/streamingjobs/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := streamingjobs.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, streamingjobs.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, streamingjobs.DefaultListOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := streamingjobs.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, streamingjobs.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, streamingjobs.DefaultListByResourceGroupOperationOptions()) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/README.md b/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/README.md index cfb0f2339ba..704553497c4 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/README.md +++ b/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := streamingjobs.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, streamingjobs.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, streamingjobs.DefaultListOperationOptions()) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := streamingjobs.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, streamingjobs.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, streamingjobs.DefaultListByResourceGroupOperationOptions()) diff --git a/resource-manager/subscription/2021-10-01/subscriptions/README.md b/resource-manager/subscription/2021-10-01/subscriptions/README.md index 2080ed0c438..f007bb48aaa 100644 --- a/resource-manager/subscription/2021-10-01/subscriptions/README.md +++ b/resource-manager/subscription/2021-10-01/subscriptions/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions" ``` @@ -138,7 +139,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscriptions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.SubscriptionCancel(ctx, id) if err != nil { @@ -154,7 +155,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscriptions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.SubscriptionEnable(ctx, id) if err != nil { @@ -239,7 +240,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := subscriptions.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := subscriptions.SubscriptionName{ // ... diff --git a/resource-manager/synapse/2021-06-01/operations/README.md b/resource-manager/synapse/2021-06-01/operations/README.md index eb1f0b2af89..3e750b3dfa7 100644 --- a/resource-manager/synapse/2021-06-01/operations/README.md +++ b/resource-manager/synapse/2021-06-01/operations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/synapse/2021-06-01/operations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := operations.CheckNameAvailabilityRequest{ // ... diff --git a/resource-manager/synapse/2021-06-01/privatelinkhubs/README.md b/resource-manager/synapse/2021-06-01/privatelinkhubs/README.md index bdaf02238bb..9b637298414 100644 --- a/resource-manager/synapse/2021-06-01/privatelinkhubs/README.md +++ b/resource-manager/synapse/2021-06-01/privatelinkhubs/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/synapse/2021-06-01/privatelinkhubs" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkhubs.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkhubs.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/synapse/2021-06-01/workspaces/README.md b/resource-manager/synapse/2021-06-01/workspaces/README.md index 67ddae314c8..a629a6f1c4c 100644 --- a/resource-manager/synapse/2021-06-01/workspaces/README.md +++ b/resource-manager/synapse/2021-06-01/workspaces/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/synapse/2021-06-01/workspaces" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspaces.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/README.md b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/README.md index 3205b183e57..df8180a9564 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/README.md +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := availabilitysets.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := availabilitysets.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/README.md b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/README.md index 4338e93e4e6..9c626c45ab7 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/README.md +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clouds.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/README.md b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/README.md index be60d760593..3f27f82a2ab 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/README.md +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := virtualmachineinstances.VirtualMachineCreateCheckpoint{ // ... @@ -41,7 +42,7 @@ if err := client.CreateCheckpointThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := virtualmachineinstances.VirtualMachineInstance{ // ... @@ -58,7 +59,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.DeleteThenPoll(ctx, id, virtualmachineinstances.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -70,7 +71,7 @@ if err := client.DeleteThenPoll(ctx, id, virtualmachineinstances.DefaultDeleteOp ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := virtualmachineinstances.VirtualMachineDeleteCheckpoint{ // ... @@ -87,7 +88,7 @@ if err := client.DeleteCheckpointThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id) if err != nil { @@ -103,7 +104,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -120,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.RestartThenPoll(ctx, id); err != nil { // handle the error @@ -132,7 +133,7 @@ if err := client.RestartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := virtualmachineinstances.VirtualMachineRestoreCheckpoint{ // ... @@ -149,7 +150,7 @@ if err := client.RestoreCheckpointThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -161,7 +162,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := virtualmachineinstances.StopVirtualMachineOptions{ // ... @@ -178,7 +179,7 @@ if err := client.StopThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachineinstances.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := virtualmachineinstances.VirtualMachineInstanceUpdate{ // ... diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/README.md b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/README.md index b945813c38b..f685fef694f 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/README.md +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachinetemplates.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinetemplates.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/README.md b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/README.md index a3f6730d05e..b423efd5b80 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/README.md +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/README.md b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/README.md index b0c4d0c7943..ce9abb2a703 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/README.md +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstanceguestagents" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vminstanceguestagents.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := vminstanceguestagents.GuestAgent{ // ... @@ -41,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := vminstanceguestagents.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Delete(ctx, id) if err != nil { @@ -57,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vminstanceguestagents.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vminstanceguestagents.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/README.md b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/README.md index f75ff0643ae..a1c2293a99e 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/README.md +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadata" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vminstancehybrididentitymetadata.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.VirtualMachineInstanceHybridIdentityMetadataGet(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vminstancehybrididentitymetadata.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") // alternatively `client.VirtualMachineInstanceHybridIdentityMetadataList(ctx, id)` can be used to do batched pagination items, err := client.VirtualMachineInstanceHybridIdentityMetadataListComplete(ctx, id) diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/README.md b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/README.md index 3a6a1c40d82..e7112823e10 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/README.md +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vmmservers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vmmservers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/timeseriesinsights/2020-05-15/environments/README.md b/resource-manager/timeseriesinsights/2020-05-15/environments/README.md index c8967d26417..871fa2d28a8 100644 --- a/resource-manager/timeseriesinsights/2020-05-15/environments/README.md +++ b/resource-manager/timeseriesinsights/2020-05-15/environments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments" ``` @@ -73,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := environments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -89,7 +90,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := environments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/trafficmanager/2018-08-01/profiles/README.md b/resource-manager/trafficmanager/2018-08-01/profiles/README.md index 996b92b76f2..a3c7091ba4f 100644 --- a/resource-manager/trafficmanager/2018-08-01/profiles/README.md +++ b/resource-manager/trafficmanager/2018-08-01/profiles/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2018-08-01/profiles" ``` @@ -97,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := profiles.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -113,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := profiles.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/trafficmanager/2018-08-01/realusermetrics/README.md b/resource-manager/trafficmanager/2018-08-01/realusermetrics/README.md index 13cdbdf8651..d03004c7ecb 100644 --- a/resource-manager/trafficmanager/2018-08-01/realusermetrics/README.md +++ b/resource-manager/trafficmanager/2018-08-01/realusermetrics/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2018-08-01/realusermetrics" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := realusermetrics.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.TrafficManagerUserMetricsKeysCreateOrUpdate(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := realusermetrics.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.TrafficManagerUserMetricsKeysDelete(ctx, id) if err != nil { @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := realusermetrics.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.TrafficManagerUserMetricsKeysGet(ctx, id) if err != nil { diff --git a/resource-manager/trafficmanager/2022-04-01/profiles/README.md b/resource-manager/trafficmanager/2022-04-01/profiles/README.md index 7decea2e3c2..87bb1747848 100644 --- a/resource-manager/trafficmanager/2022-04-01/profiles/README.md +++ b/resource-manager/trafficmanager/2022-04-01/profiles/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := profiles.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := profiles.CheckTrafficManagerRelativeDnsNameAvailabilityParameters{ // ... @@ -118,7 +119,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := profiles.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id) if err != nil { @@ -134,7 +135,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := profiles.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/trafficmanager/2022-04-01/realusermetrics/README.md b/resource-manager/trafficmanager/2022-04-01/realusermetrics/README.md index 94617d12300..f522a1f80ef 100644 --- a/resource-manager/trafficmanager/2022-04-01/realusermetrics/README.md +++ b/resource-manager/trafficmanager/2022-04-01/realusermetrics/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/realusermetrics" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := realusermetrics.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.TrafficManagerUserMetricsKeysCreateOrUpdate(ctx, id) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := realusermetrics.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.TrafficManagerUserMetricsKeysDelete(ctx, id) if err != nil { @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := realusermetrics.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.TrafficManagerUserMetricsKeysGet(ctx, id) if err != nil { diff --git a/resource-manager/videoanalyzer/2021-05-01-preview/videoanalyzers/README.md b/resource-manager/videoanalyzer/2021-05-01-preview/videoanalyzers/README.md index 5c1ae4d69b6..ee7261b7dbf 100644 --- a/resource-manager/videoanalyzer/2021-05-01-preview/videoanalyzers/README.md +++ b/resource-manager/videoanalyzer/2021-05-01-preview/videoanalyzers/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/videoanalyzer/2021-05-01-preview/videoanalyzers" ``` @@ -98,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := videoanalyzers.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.VideoAnalyzersList(ctx, id) if err != nil { @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := videoanalyzers.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.VideoAnalyzersListBySubscription(ctx, id) if err != nil { diff --git a/resource-manager/vmware/2022-05-01/privateclouds/README.md b/resource-manager/vmware/2022-05-01/privateclouds/README.md index 9c1144d7ca6..3e4879d4dba 100644 --- a/resource-manager/vmware/2022-05-01/privateclouds/README.md +++ b/resource-manager/vmware/2022-05-01/privateclouds/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateclouds.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -102,7 +103,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateclouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListInSubscription(ctx, id)` can be used to do batched pagination items, err := client.ListInSubscriptionComplete(ctx, id) diff --git a/resource-manager/vmware/2023-03-01/privateclouds/README.md b/resource-manager/vmware/2023-03-01/privateclouds/README.md index 2c4e1f86aaa..331cf5c7cb3 100644 --- a/resource-manager/vmware/2023-03-01/privateclouds/README.md +++ b/resource-manager/vmware/2023-03-01/privateclouds/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2023-03-01/privateclouds" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateclouds.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -102,7 +103,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateclouds.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListInSubscription(ctx, id)` can be used to do batched pagination items, err := client.ListInSubscriptionComplete(ctx, id) diff --git a/resource-manager/voiceservices/2023-04-03/communicationsgateways/README.md b/resource-manager/voiceservices/2023-04-03/communicationsgateways/README.md index 336812ad790..a292423d584 100644 --- a/resource-manager/voiceservices/2023-04-03/communicationsgateways/README.md +++ b/resource-manager/voiceservices/2023-04-03/communicationsgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := communicationsgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := communicationsgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/voiceservices/2023-09-01/communicationsgateways/README.md b/resource-manager/voiceservices/2023-09-01/communicationsgateways/README.md index 64b7ec509db..8ad9311ba31 100644 --- a/resource-manager/voiceservices/2023-09-01/communicationsgateways/README.md +++ b/resource-manager/voiceservices/2023-09-01/communicationsgateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-09-01/communicationsgateways" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := communicationsgateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := communicationsgateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/web/2016-06-01/connectiongateways/README.md b/resource-manager/web/2016-06-01/connectiongateways/README.md index 211fadbcecd..09a1b0f21ae 100644 --- a/resource-manager/web/2016-06-01/connectiongateways/README.md +++ b/resource-manager/web/2016-06-01/connectiongateways/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connectiongateways" ``` @@ -109,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connectiongateways.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ConnectionGatewaysList(ctx, id) if err != nil { @@ -125,7 +126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connectiongateways.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ConnectionGatewaysListByResourceGroup(ctx, id) if err != nil { diff --git a/resource-manager/web/2016-06-01/connections/README.md b/resource-manager/web/2016-06-01/connections/README.md index 2d1e438b42d..e1d2c54076c 100644 --- a/resource-manager/web/2016-06-01/connections/README.md +++ b/resource-manager/web/2016-06-01/connections/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections" ``` @@ -98,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connections.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.List(ctx, id, connections.DefaultListOperationOptions()) if err != nil { diff --git a/resource-manager/web/2016-06-01/customapis/README.md b/resource-manager/web/2016-06-01/customapis/README.md index b62ba5f951d..d04eeb25cb9 100644 --- a/resource-manager/web/2016-06-01/customapis/README.md +++ b/resource-manager/web/2016-06-01/customapis/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/customapis" ``` @@ -98,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := customapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.List(ctx, id, customapis.DefaultListOperationOptions()) if err != nil { @@ -114,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := customapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") read, err := client.ListByResourceGroup(ctx, id, customapis.DefaultListByResourceGroupOperationOptions()) if err != nil { diff --git a/resource-manager/web/2022-09-01/appservicecertificateorders/README.md b/resource-manager/web/2022-09-01/appservicecertificateorders/README.md index cd92bbacf26..e019b7eeb65 100644 --- a/resource-manager/web/2022-09-01/appservicecertificateorders/README.md +++ b/resource-manager/web/2022-09-01/appservicecertificateorders/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/appservicecertificateorders" ``` @@ -122,7 +123,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appservicecertificateorders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -139,7 +140,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appservicecertificateorders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -347,7 +348,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appservicecertificateorders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := appservicecertificateorders.AppServiceCertificateOrder{ // ... diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/README.md b/resource-manager/web/2022-09-01/appserviceenvironments/README.md index 4f46c537f8e..cebd72fafff 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/README.md +++ b/resource-manager/web/2022-09-01/appserviceenvironments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/appserviceenvironments" ``` @@ -41,7 +42,7 @@ if err := client.ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx, id, paylo ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") payload := appserviceenvironments.VirtualNetworkProfile{ // ... @@ -63,7 +64,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") payload := appserviceenvironments.AppServiceEnvironmentResource{ // ... @@ -80,7 +81,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") payload := appserviceenvironments.WorkerPoolResource{ // ... @@ -114,7 +115,7 @@ if err := client.CreateOrUpdateWorkerPoolThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") if err := client.DeleteThenPoll(ctx, id, appserviceenvironments.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -126,7 +127,7 @@ if err := client.DeleteThenPoll(ctx, id, appserviceenvironments.DefaultDeleteOpe ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.DeleteAseCustomDnsSuffixConfiguration(ctx, id) if err != nil { @@ -154,7 +155,7 @@ if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.Get(ctx, id) if err != nil { @@ -170,7 +171,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.GetAseCustomDnsSuffixConfiguration(ctx, id) if err != nil { @@ -186,7 +187,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.GetAseV3NetworkingConfiguration(ctx, id) if err != nil { @@ -218,7 +219,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.GetInboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.GetInboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -235,7 +236,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.GetMultiRolePool(ctx, id) if err != nil { @@ -251,7 +252,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.GetOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.GetOutboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -284,7 +285,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.GetPrivateEndpointConnectionList(ctx, id)` can be used to do batched pagination items, err := client.GetPrivateEndpointConnectionListComplete(ctx, id) @@ -301,7 +302,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.GetPrivateLinkResources(ctx, id) if err != nil { @@ -317,7 +318,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.GetVipInfo(ctx, id) if err != nil { @@ -349,7 +350,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -366,7 +367,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListAppServicePlans(ctx, id)` can be used to do batched pagination items, err := client.ListAppServicePlansComplete(ctx, id) @@ -383,7 +384,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -400,7 +401,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListCapacities(ctx, id)` can be used to do batched pagination items, err := client.ListCapacitiesComplete(ctx, id) @@ -417,7 +418,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.ListDiagnostics(ctx, id) if err != nil { @@ -433,7 +434,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListMultiRoleMetricDefinitions(ctx, id)` can be used to do batched pagination items, err := client.ListMultiRoleMetricDefinitionsComplete(ctx, id) @@ -467,7 +468,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListMultiRolePoolSkus(ctx, id)` can be used to do batched pagination items, err := client.ListMultiRolePoolSkusComplete(ctx, id) @@ -484,7 +485,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListMultiRolePools(ctx, id)` can be used to do batched pagination items, err := client.ListMultiRolePoolsComplete(ctx, id) @@ -501,7 +502,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListMultiRoleUsages(ctx, id)` can be used to do batched pagination items, err := client.ListMultiRoleUsagesComplete(ctx, id) @@ -518,7 +519,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.ListOperations(ctx, id) if err != nil { @@ -534,7 +535,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListUsages(ctx, id, appserviceenvironments.DefaultListUsagesOperationOptions())` can be used to do batched pagination items, err := client.ListUsagesComplete(ctx, id, appserviceenvironments.DefaultListUsagesOperationOptions()) @@ -551,7 +552,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListWebApps(ctx, id, appserviceenvironments.DefaultListWebAppsOperationOptions())` can be used to do batched pagination items, err := client.ListWebAppsComplete(ctx, id, appserviceenvironments.DefaultListWebAppsOperationOptions()) @@ -636,7 +637,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListWorkerPools(ctx, id)` can be used to do batched pagination items, err := client.ListWorkerPoolsComplete(ctx, id) @@ -653,7 +654,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.Reboot(ctx, id) if err != nil { @@ -669,7 +670,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.Resume(ctx, id)` can be used to do batched pagination items, err := client.ResumeComplete(ctx, id) @@ -686,7 +687,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.Suspend(ctx, id)` can be used to do batched pagination items, err := client.SuspendComplete(ctx, id) @@ -703,7 +704,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.TestUpgradeAvailableNotification(ctx, id) if err != nil { @@ -719,7 +720,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") payload := appserviceenvironments.AppServiceEnvironmentPatchResource{ // ... @@ -740,7 +741,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") payload := appserviceenvironments.CustomDnsSuffixConfiguration{ // ... @@ -761,7 +762,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") payload := appserviceenvironments.AseV3NetworkingConfiguration{ // ... @@ -782,7 +783,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") payload := appserviceenvironments.WorkerPoolResource{ // ... @@ -824,7 +825,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") if err := client.UpgradeThenPoll(ctx, id); err != nil { // handle the error diff --git a/resource-manager/web/2022-09-01/appserviceplans/README.md b/resource-manager/web/2022-09-01/appserviceplans/README.md index 2339dc7d311..a0c21e1edaa 100644 --- a/resource-manager/web/2022-09-01/appserviceplans/README.md +++ b/resource-manager/web/2022-09-01/appserviceplans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/appserviceplans" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") payload := appserviceplans.AppServicePlan{ // ... @@ -62,7 +63,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") read, err := client.Delete(ctx, id) if err != nil { @@ -110,7 +111,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") read, err := client.Get(ctx, id) if err != nil { @@ -142,7 +143,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") read, err := client.GetHybridConnectionPlanLimit(ctx, id) if err != nil { @@ -174,7 +175,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") read, err := client.GetServerFarmSkus(ctx, id) if err != nil { @@ -222,7 +223,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, appserviceplans.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, appserviceplans.DefaultListOperationOptions()) @@ -239,7 +240,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceplans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -256,7 +257,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") read, err := client.ListCapabilities(ctx, id) if err != nil { @@ -288,7 +289,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") // alternatively `client.ListHybridConnections(ctx, id)` can be used to do batched pagination items, err := client.ListHybridConnectionsComplete(ctx, id) @@ -321,7 +322,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") // alternatively `client.ListUsages(ctx, id, appserviceplans.DefaultListUsagesOperationOptions())` can be used to do batched pagination items, err := client.ListUsagesComplete(ctx, id, appserviceplans.DefaultListUsagesOperationOptions()) @@ -338,7 +339,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") read, err := client.ListVnets(ctx, id) if err != nil { @@ -354,7 +355,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") // alternatively `client.ListWebApps(ctx, id, appserviceplans.DefaultListWebAppsOperationOptions())` can be used to do batched pagination items, err := client.ListWebAppsComplete(ctx, id, appserviceplans.DefaultListWebAppsOperationOptions()) @@ -404,7 +405,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") read, err := client.RestartWebApps(ctx, id, appserviceplans.DefaultRestartWebAppsOperationOptions()) if err != nil { @@ -420,7 +421,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") payload := appserviceplans.AppServicePlanPatchResource{ // ... diff --git a/resource-manager/web/2022-09-01/certificates/README.md b/resource-manager/web/2022-09-01/certificates/README.md index 3c7866a8bdd..3571ca3e573 100644 --- a/resource-manager/web/2022-09-01/certificates/README.md +++ b/resource-manager/web/2022-09-01/certificates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/certificates" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificates.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, certificates.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, certificates.DefaultListOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := certificates.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/web/2022-09-01/containerapps/README.md b/resource-manager/web/2022-09-01/containerapps/README.md index 978175de3cd..2b878e5521c 100644 --- a/resource-manager/web/2022-09-01/containerapps/README.md +++ b/resource-manager/web/2022-09-01/containerapps/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/containerapps" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerapps.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := containerapps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/web/2022-09-01/deletedwebapps/README.md b/resource-manager/web/2022-09-01/deletedwebapps/README.md index 54a2faf36fa..427674fabe9 100644 --- a/resource-manager/web/2022-09-01/deletedwebapps/README.md +++ b/resource-manager/web/2022-09-01/deletedwebapps/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/deletedwebapps" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deletedwebapps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/web/2022-09-01/diagnostics/README.md b/resource-manager/web/2022-09-01/diagnostics/README.md index e23209ed6a7..221f433ba28 100644 --- a/resource-manager/web/2022-09-01/diagnostics/README.md +++ b/resource-manager/web/2022-09-01/diagnostics/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/diagnostics" ``` @@ -232,7 +233,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diagnostics.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListHostingEnvironmentDetectorResponses(ctx, id)` can be used to do batched pagination items, err := client.ListHostingEnvironmentDetectorResponsesComplete(ctx, id) @@ -283,7 +284,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diagnostics.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListSiteDetectorResponses(ctx, id)` can be used to do batched pagination items, err := client.ListSiteDetectorResponsesComplete(ctx, id) @@ -351,7 +352,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diagnostics.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListSiteDiagnosticCategories(ctx, id)` can be used to do batched pagination items, err := client.ListSiteDiagnosticCategoriesComplete(ctx, id) diff --git a/resource-manager/web/2022-09-01/domains/README.md b/resource-manager/web/2022-09-01/domains/README.md index aecc0f27342..87e8ea11e84 100644 --- a/resource-manager/web/2022-09-01/domains/README.md +++ b/resource-manager/web/2022-09-01/domains/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/domains" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := domains.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := domains.NameIdentifier{ // ... @@ -131,7 +132,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := domains.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.GetControlCenterSsoRequest(ctx, id) if err != nil { @@ -163,7 +164,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := domains.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -180,7 +181,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := domains.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -214,7 +215,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := domains.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := domains.DomainRecommendationSearchParameters{ // ... diff --git a/resource-manager/web/2022-09-01/kubeenvironments/README.md b/resource-manager/web/2022-09-01/kubeenvironments/README.md index 65fa4697471..1b6b2b14791 100644 --- a/resource-manager/web/2022-09-01/kubeenvironments/README.md +++ b/resource-manager/web/2022-09-01/kubeenvironments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/kubeenvironments" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := kubeenvironments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := kubeenvironments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/web/2022-09-01/provider/README.md b/resource-manager/web/2022-09-01/provider/README.md index 2ca4dd958ea..a3c1cfb044f 100644 --- a/resource-manager/web/2022-09-01/provider/README.md +++ b/resource-manager/web/2022-09-01/provider/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/provider" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := provider.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.GetAvailableStacksOnPrem(ctx, id, provider.DefaultGetAvailableStacksOnPremOperationOptions())` can be used to do batched pagination items, err := client.GetAvailableStacksOnPremComplete(ctx, id, provider.DefaultGetAvailableStacksOnPremOperationOptions()) diff --git a/resource-manager/web/2022-09-01/recommendations/README.md b/resource-manager/web/2022-09-01/recommendations/README.md index 4980813f517..a4be627d9f8 100644 --- a/resource-manager/web/2022-09-01/recommendations/README.md +++ b/resource-manager/web/2022-09-01/recommendations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/recommendations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := recommendations.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.DisableAllForHostingEnvironment(ctx, id, recommendations.DefaultDisableAllForHostingEnvironmentOperationOptions()) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recommendations.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.DisableAllForWebApp(ctx, id) if err != nil { @@ -136,7 +137,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recommendations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, recommendations.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, recommendations.DefaultListOperationOptions()) @@ -153,7 +154,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := recommendations.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListHistoryForHostingEnvironment(ctx, id, recommendations.DefaultListHistoryForHostingEnvironmentOperationOptions())` can be used to do batched pagination items, err := client.ListHistoryForHostingEnvironmentComplete(ctx, id, recommendations.DefaultListHistoryForHostingEnvironmentOperationOptions()) @@ -170,7 +171,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := recommendations.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListHistoryForWebApp(ctx, id, recommendations.DefaultListHistoryForWebAppOperationOptions())` can be used to do batched pagination items, err := client.ListHistoryForWebAppComplete(ctx, id, recommendations.DefaultListHistoryForWebAppOperationOptions()) @@ -187,7 +188,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := recommendations.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListRecommendedRulesForHostingEnvironment(ctx, id, recommendations.DefaultListRecommendedRulesForHostingEnvironmentOperationOptions())` can be used to do batched pagination items, err := client.ListRecommendedRulesForHostingEnvironmentComplete(ctx, id, recommendations.DefaultListRecommendedRulesForHostingEnvironmentOperationOptions()) @@ -204,7 +205,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := recommendations.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListRecommendedRulesForWebApp(ctx, id, recommendations.DefaultListRecommendedRulesForWebAppOperationOptions())` can be used to do batched pagination items, err := client.ListRecommendedRulesForWebAppComplete(ctx, id, recommendations.DefaultListRecommendedRulesForWebAppOperationOptions()) @@ -221,7 +222,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := recommendations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ResetAllFilters(ctx, id) if err != nil { @@ -237,7 +238,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recommendations.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.ResetAllFiltersForHostingEnvironment(ctx, id, recommendations.DefaultResetAllFiltersForHostingEnvironmentOperationOptions()) if err != nil { @@ -253,7 +254,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recommendations.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ResetAllFiltersForWebApp(ctx, id) if err != nil { diff --git a/resource-manager/web/2022-09-01/resourcehealthmetadata/README.md b/resource-manager/web/2022-09-01/resourcehealthmetadata/README.md index 2f4e671de49..4e9a2f8f52c 100644 --- a/resource-manager/web/2022-09-01/resourcehealthmetadata/README.md +++ b/resource-manager/web/2022-09-01/resourcehealthmetadata/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/resourcehealthmetadata" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resourcehealthmetadata.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetBySite(ctx, id) if err != nil { @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcehealthmetadata.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -73,7 +74,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourcehealthmetadata.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourcehealthmetadata.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListBySite(ctx, id)` can be used to do batched pagination items, err := client.ListBySiteComplete(ctx, id) diff --git a/resource-manager/web/2022-09-01/resourceproviders/README.md b/resource-manager/web/2022-09-01/resourceproviders/README.md index 8ccd9594a31..52d2cbdeedc 100644 --- a/resource-manager/web/2022-09-01/resourceproviders/README.md +++ b/resource-manager/web/2022-09-01/resourceproviders/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/resourceproviders" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := resourceproviders.ResourceNameAvailabilityRequest{ // ... @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.GetSubscriptionDeploymentLocations(ctx, id) if err != nil { @@ -93,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBillingMeters(ctx, id, resourceproviders.DefaultListBillingMetersOperationOptions())` can be used to do batched pagination items, err := client.ListBillingMetersComplete(ctx, id, resourceproviders.DefaultListBillingMetersOperationOptions()) @@ -110,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListCustomHostNameSites(ctx, id, resourceproviders.DefaultListCustomHostNameSitesOperationOptions())` can be used to do batched pagination items, err := client.ListCustomHostNameSitesComplete(ctx, id, resourceproviders.DefaultListCustomHostNameSitesOperationOptions()) @@ -127,7 +128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListGeoRegions(ctx, id, resourceproviders.DefaultListGeoRegionsOperationOptions())` can be used to do batched pagination items, err := client.ListGeoRegionsComplete(ctx, id, resourceproviders.DefaultListGeoRegionsOperationOptions()) @@ -144,7 +145,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListPremierAddOnOffers(ctx, id)` can be used to do batched pagination items, err := client.ListPremierAddOnOffersComplete(ctx, id) @@ -161,7 +162,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := resourceproviders.NameIdentifier{ // ... @@ -183,7 +184,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListSkus(ctx, id) if err != nil { @@ -216,7 +217,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceproviders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resourceproviders.CsmMoveResourceEnvelope{ // ... @@ -278,7 +279,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceproviders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resourceproviders.ValidateRequest{ // ... @@ -299,7 +300,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceproviders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resourceproviders.CsmMoveResourceEnvelope{ // ... @@ -320,7 +321,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := resourceproviders.VnetParameters{ // ... diff --git a/resource-manager/web/2022-09-01/staticsites/README.md b/resource-manager/web/2022-09-01/staticsites/README.md index ef135bf5411..965366d948a 100644 --- a/resource-manager/web/2022-09-01/staticsites/README.md +++ b/resource-manager/web/2022-09-01/staticsites/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/staticsites" ``` @@ -745,7 +746,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.GetStaticSitesByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.GetStaticSitesByResourceGroupComplete(ctx, id) @@ -862,7 +863,7 @@ if err := client.LinkBackendToBuildThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := staticsites.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/web/2022-09-01/topleveldomains/README.md b/resource-manager/web/2022-09-01/topleveldomains/README.md index 7d4d92a01c4..33443716d20 100644 --- a/resource-manager/web/2022-09-01/topleveldomains/README.md +++ b/resource-manager/web/2022-09-01/topleveldomains/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/topleveldomains" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := topleveldomains.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/web/2022-09-01/webapps/README.md b/resource-manager/web/2022-09-01/webapps/README.md index 24f72ef9076..d3edc7e37c5 100644 --- a/resource-manager/web/2022-09-01/webapps/README.md +++ b/resource-manager/web/2022-09-01/webapps/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/webapps" ``` @@ -66,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.AnalyzeCustomHostname(ctx, id, webapps.DefaultAnalyzeCustomHostnameOperationOptions()) if err != nil { @@ -98,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.CsmSlotEntity{ // ... @@ -174,7 +175,7 @@ if err := client.ApproveOrRejectPrivateEndpointConnectionSlotThenPoll(ctx, id, p ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.BackupRequest{ // ... @@ -326,7 +327,7 @@ if err := client.CreateInstanceMSDeployOperationSlotThenPoll(ctx, id, payload); ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.MSDeploy{ // ... @@ -360,7 +361,7 @@ if err := client.CreateMSDeployOperationSlotThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.CreateOneDeployOperation(ctx, id) if err != nil { @@ -376,7 +377,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.Site{ // ... @@ -393,7 +394,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SiteConfigResource{ // ... @@ -746,7 +747,7 @@ if err := client.CreateOrUpdateSlotThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SiteSourceControl{ // ... @@ -780,7 +781,7 @@ if err := client.CreateOrUpdateSourceControlSlotThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SwiftVirtualNetwork{ // ... @@ -906,7 +907,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.Delete(ctx, id, webapps.DefaultDeleteOperationOptions()) if err != nil { @@ -938,7 +939,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.DeleteBackupConfiguration(ctx, id) if err != nil { @@ -1474,7 +1475,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.DeleteSourceControl(ctx, id, webapps.DefaultDeleteSourceControlOperationOptions()) if err != nil { @@ -1506,7 +1507,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.DeleteSwiftVirtualNetwork(ctx, id) if err != nil { @@ -1602,7 +1603,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.WorkflowArtifacts{ // ... @@ -1644,7 +1645,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.RestoreRequest{ // ... @@ -1686,7 +1687,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GenerateNewSitePublishingPassword(ctx, id) if err != nil { @@ -1718,7 +1719,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.Get(ctx, id) if err != nil { @@ -1766,7 +1767,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.GetAppSettingsKeyVaultReferences(ctx, id)` can be used to do batched pagination items, err := client.GetAppSettingsKeyVaultReferencesComplete(ctx, id) @@ -1800,7 +1801,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetAuthSettings(ctx, id) if err != nil { @@ -1832,7 +1833,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetAuthSettingsV2(ctx, id) if err != nil { @@ -1864,7 +1865,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetAuthSettingsV2WithoutSecrets(ctx, id) if err != nil { @@ -1896,7 +1897,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetBackupConfiguration(ctx, id) if err != nil { @@ -1960,7 +1961,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetConfiguration(ctx, id) if err != nil { @@ -2024,7 +2025,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetContainerLogsZip(ctx, id) if err != nil { @@ -2120,7 +2121,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetDiagnosticLogsConfiguration(ctx, id) if err != nil { @@ -2184,7 +2185,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetFtpAllowed(ctx, id) if err != nil { @@ -2232,7 +2233,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetFunctionsAdminToken(ctx, id) if err != nil { @@ -2552,7 +2553,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetMSDeployLog(ctx, id) if err != nil { @@ -2584,7 +2585,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetMSDeployStatus(ctx, id) if err != nil { @@ -2616,7 +2617,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetMigrateMySqlStatus(ctx, id) if err != nil { @@ -2712,7 +2713,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetOneDeployStatus(ctx, id) if err != nil { @@ -2760,7 +2761,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetPrivateAccess(ctx, id) if err != nil { @@ -2808,7 +2809,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.GetPrivateEndpointConnectionList(ctx, id)` can be used to do batched pagination items, err := client.GetPrivateEndpointConnectionListComplete(ctx, id) @@ -2858,7 +2859,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetPrivateLinkResources(ctx, id) if err != nil { @@ -3050,7 +3051,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetScmAllowed(ctx, id) if err != nil { @@ -3114,7 +3115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.GetSiteConnectionStringKeyVaultReferences(ctx, id)` can be used to do batched pagination items, err := client.GetSiteConnectionStringKeyVaultReferencesComplete(ctx, id) @@ -3180,7 +3181,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetSitePhpErrorLogFlag(ctx, id) if err != nil { @@ -3228,7 +3229,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetSourceControl(ctx, id) if err != nil { @@ -3260,7 +3261,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetSwiftVirtualNetworkConnection(ctx, id) if err != nil { @@ -3452,7 +3453,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetWebSiteContainerLogs(ctx, id) if err != nil { @@ -3524,7 +3525,7 @@ if err := client.InstallSiteExtensionSlotThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.IsCloneable(ctx, id) if err != nil { @@ -3556,7 +3557,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -3573,7 +3574,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListApplicationSettings(ctx, id) if err != nil { @@ -3605,7 +3606,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListAzureStorageAccounts(ctx, id) if err != nil { @@ -3679,7 +3680,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListBackups(ctx, id)` can be used to do batched pagination items, err := client.ListBackupsComplete(ctx, id) @@ -3713,7 +3714,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListBasicPublishingCredentialsPolicies(ctx, id)` can be used to do batched pagination items, err := client.ListBasicPublishingCredentialsPoliciesComplete(ctx, id) @@ -3747,7 +3748,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, webapps.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, webapps.DefaultListByResourceGroupOperationOptions()) @@ -3764,7 +3765,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListConfigurationSnapshotInfo(ctx, id)` can be used to do batched pagination items, err := client.ListConfigurationSnapshotInfoComplete(ctx, id) @@ -3798,7 +3799,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListConfigurations(ctx, id)` can be used to do batched pagination items, err := client.ListConfigurationsComplete(ctx, id) @@ -3832,7 +3833,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListConnectionStrings(ctx, id) if err != nil { @@ -3864,7 +3865,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListContinuousWebJobs(ctx, id)` can be used to do batched pagination items, err := client.ListContinuousWebJobsComplete(ctx, id) @@ -3930,7 +3931,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListDeployments(ctx, id)` can be used to do batched pagination items, err := client.ListDeploymentsComplete(ctx, id) @@ -3964,7 +3965,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListDomainOwnershipIdentifiers(ctx, id)` can be used to do batched pagination items, err := client.ListDomainOwnershipIdentifiersComplete(ctx, id) @@ -4062,7 +4063,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListFunctions(ctx, id)` can be used to do batched pagination items, err := client.ListFunctionsComplete(ctx, id) @@ -4079,7 +4080,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListHostKeys(ctx, id) if err != nil { @@ -4111,7 +4112,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListHostNameBindings(ctx, id)` can be used to do batched pagination items, err := client.ListHostNameBindingsComplete(ctx, id) @@ -4145,7 +4146,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListHybridConnections(ctx, id) if err != nil { @@ -4194,7 +4195,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListInstanceIdentifiers(ctx, id)` can be used to do batched pagination items, err := client.ListInstanceIdentifiersComplete(ctx, id) @@ -4347,7 +4348,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListMetadata(ctx, id) if err != nil { @@ -4411,7 +4412,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListPerfMonCounters(ctx, id, webapps.DefaultListPerfMonCountersOperationOptions())` can be used to do batched pagination items, err := client.ListPerfMonCountersComplete(ctx, id, webapps.DefaultListPerfMonCountersOperationOptions()) @@ -4445,7 +4446,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListPremierAddOns(ctx, id) if err != nil { @@ -4545,7 +4546,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListProcesses(ctx, id)` can be used to do batched pagination items, err := client.ListProcessesComplete(ctx, id) @@ -4579,7 +4580,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListProductionSiteDeploymentStatuses(ctx, id)` can be used to do batched pagination items, err := client.ListProductionSiteDeploymentStatusesComplete(ctx, id) @@ -4596,7 +4597,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListPublicCertificates(ctx, id)` can be used to do batched pagination items, err := client.ListPublicCertificatesComplete(ctx, id) @@ -4630,7 +4631,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") if err := client.ListPublishingCredentialsThenPoll(ctx, id); err != nil { // handle the error @@ -4654,7 +4655,7 @@ if err := client.ListPublishingCredentialsSlotThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.CsmPublishingProfileOptions{ // ... @@ -4696,7 +4697,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListRelayServiceConnections(ctx, id) if err != nil { @@ -4728,7 +4729,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListSiteBackups(ctx, id)` can be used to do batched pagination items, err := client.ListSiteBackupsComplete(ctx, id) @@ -4762,7 +4763,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListSiteExtensions(ctx, id)` can be used to do batched pagination items, err := client.ListSiteExtensionsComplete(ctx, id) @@ -4796,7 +4797,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListSitePushSettings(ctx, id) if err != nil { @@ -4828,7 +4829,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListSlotConfigurationNames(ctx, id) if err != nil { @@ -4844,7 +4845,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.CsmSlotEntity{ // ... @@ -4905,7 +4906,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListSlots(ctx, id)` can be used to do batched pagination items, err := client.ListSlotsComplete(ctx, id) @@ -4922,7 +4923,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListSnapshots(ctx, id)` can be used to do batched pagination items, err := client.ListSnapshotsComplete(ctx, id) @@ -4939,7 +4940,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListSnapshotsFromDRSecondary(ctx, id)` can be used to do batched pagination items, err := client.ListSnapshotsFromDRSecondaryComplete(ctx, id) @@ -4990,7 +4991,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListSyncFunctionTriggers(ctx, id) if err != nil { @@ -5022,7 +5023,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListSyncStatus(ctx, id) if err != nil { @@ -5088,7 +5089,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListTriggeredWebJobs(ctx, id)` can be used to do batched pagination items, err := client.ListTriggeredWebJobsComplete(ctx, id) @@ -5122,7 +5123,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListUsages(ctx, id, webapps.DefaultListUsagesOperationOptions())` can be used to do batched pagination items, err := client.ListUsagesComplete(ctx, id, webapps.DefaultListUsagesOperationOptions()) @@ -5156,7 +5157,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListVnetConnections(ctx, id) if err != nil { @@ -5188,7 +5189,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListWebJobs(ctx, id)` can be used to do batched pagination items, err := client.ListWebJobsComplete(ctx, id) @@ -5222,7 +5223,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListWorkflows(ctx, id)` can be used to do batched pagination items, err := client.ListWorkflowsComplete(ctx, id) @@ -5239,7 +5240,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListWorkflowsConnections(ctx, id) if err != nil { @@ -5271,7 +5272,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.MigrateMySqlRequest{ // ... @@ -5288,7 +5289,7 @@ if err := client.MigrateMySqlThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.StorageMigrationOptions{ // ... @@ -5305,7 +5306,7 @@ if err := client.MigrateStorageThenPoll(ctx, id, payload, webapps.DefaultMigrate ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.PrivateAccess{ // ... @@ -5379,7 +5380,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ResetProductionSlotConfig(ctx, id) if err != nil { @@ -5411,7 +5412,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.Restart(ctx, id, webapps.DefaultRestartOperationOptions()) if err != nil { @@ -5460,7 +5461,7 @@ if err := client.RestoreThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.RestoreRequest{ // ... @@ -5494,7 +5495,7 @@ if err := client.RestoreFromBackupBlobSlotThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.DeletedAppRestoreRequest{ // ... @@ -5545,7 +5546,7 @@ if err := client.RestoreSlotThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SnapshotRestoreRequest{ // ... @@ -5611,7 +5612,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.Start(ctx, id) if err != nil { @@ -5659,7 +5660,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") if err := client.StartNetworkTraceThenPoll(ctx, id, webapps.DefaultStartNetworkTraceOperationOptions()); err != nil { // handle the error @@ -5699,7 +5700,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.StartWebSiteNetworkTrace(ctx, id, webapps.DefaultStartWebSiteNetworkTraceOperationOptions()) if err != nil { @@ -5715,7 +5716,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") if err := client.StartWebSiteNetworkTraceOperationThenPoll(ctx, id, webapps.DefaultStartWebSiteNetworkTraceOperationOperationOptions()); err != nil { // handle the error @@ -5755,7 +5756,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.Stop(ctx, id) if err != nil { @@ -5803,7 +5804,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.StopNetworkTrace(ctx, id) if err != nil { @@ -5851,7 +5852,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.StopWebSiteNetworkTrace(ctx, id) if err != nil { @@ -5900,7 +5901,7 @@ if err := client.SwapSlotSlotThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.CsmSlotEntity{ // ... @@ -5917,7 +5918,7 @@ if err := client.SwapSlotWithProductionThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.SyncFunctionTriggers(ctx, id) if err != nil { @@ -5949,7 +5950,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.SyncFunctions(ctx, id) if err != nil { @@ -5981,7 +5982,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.SyncRepository(ctx, id) if err != nil { @@ -6013,7 +6014,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SitePatchResource{ // ... @@ -6034,7 +6035,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.StringDictionary{ // ... @@ -6076,7 +6077,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SiteAuthSettings{ // ... @@ -6118,7 +6119,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SiteAuthSettingsV2{ // ... @@ -6160,7 +6161,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.AzureStoragePropertyDictionaryResource{ // ... @@ -6202,7 +6203,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.BackupRequest{ // ... @@ -6244,7 +6245,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SiteConfigResource{ // ... @@ -6286,7 +6287,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.ConnectionStringDictionary{ // ... @@ -6328,7 +6329,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SiteLogsConfig{ // ... @@ -6412,7 +6413,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.CsmPublishingCredentialsPoliciesEntity{ // ... @@ -6496,7 +6497,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.StringDictionary{ // ... @@ -6622,7 +6623,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.CsmPublishingCredentialsPoliciesEntity{ // ... @@ -6664,7 +6665,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.PushSettings{ // ... @@ -6727,7 +6728,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SlotConfigNamesResource{ // ... @@ -6748,7 +6749,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SiteSourceControl{ // ... @@ -6790,7 +6791,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SwiftVirtualNetwork{ // ... diff --git a/resource-manager/web/2023-01-01/appservicecertificateorders/README.md b/resource-manager/web/2023-01-01/appservicecertificateorders/README.md index 646d24649b8..cc613a5b9a7 100644 --- a/resource-manager/web/2023-01-01/appservicecertificateorders/README.md +++ b/resource-manager/web/2023-01-01/appservicecertificateorders/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appservicecertificateorders" ``` @@ -122,7 +123,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appservicecertificateorders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -139,7 +140,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appservicecertificateorders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -347,7 +348,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appservicecertificateorders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := appservicecertificateorders.AppServiceCertificateOrder{ // ... diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/README.md b/resource-manager/web/2023-01-01/appserviceenvironments/README.md index 31140f6bac1..cbd1d06c395 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/README.md +++ b/resource-manager/web/2023-01-01/appserviceenvironments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments" ``` @@ -41,7 +42,7 @@ if err := client.ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx, id, paylo ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") payload := appserviceenvironments.VirtualNetworkProfile{ // ... @@ -63,7 +64,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") payload := appserviceenvironments.AppServiceEnvironmentResource{ // ... @@ -80,7 +81,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") payload := appserviceenvironments.WorkerPoolResource{ // ... @@ -114,7 +115,7 @@ if err := client.CreateOrUpdateWorkerPoolThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") if err := client.DeleteThenPoll(ctx, id, appserviceenvironments.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -126,7 +127,7 @@ if err := client.DeleteThenPoll(ctx, id, appserviceenvironments.DefaultDeleteOpe ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.DeleteAseCustomDnsSuffixConfiguration(ctx, id) if err != nil { @@ -154,7 +155,7 @@ if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.Get(ctx, id) if err != nil { @@ -170,7 +171,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.GetAseCustomDnsSuffixConfiguration(ctx, id) if err != nil { @@ -186,7 +187,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.GetAseV3NetworkingConfiguration(ctx, id) if err != nil { @@ -218,7 +219,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.GetInboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.GetInboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -235,7 +236,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.GetMultiRolePool(ctx, id) if err != nil { @@ -251,7 +252,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.GetOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.GetOutboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -284,7 +285,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.GetPrivateEndpointConnectionList(ctx, id)` can be used to do batched pagination items, err := client.GetPrivateEndpointConnectionListComplete(ctx, id) @@ -301,7 +302,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.GetPrivateLinkResources(ctx, id) if err != nil { @@ -317,7 +318,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.GetVipInfo(ctx, id) if err != nil { @@ -349,7 +350,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -366,7 +367,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListAppServicePlans(ctx, id)` can be used to do batched pagination items, err := client.ListAppServicePlansComplete(ctx, id) @@ -383,7 +384,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -400,7 +401,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListCapacities(ctx, id)` can be used to do batched pagination items, err := client.ListCapacitiesComplete(ctx, id) @@ -417,7 +418,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.ListDiagnostics(ctx, id) if err != nil { @@ -433,7 +434,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListMultiRoleMetricDefinitions(ctx, id)` can be used to do batched pagination items, err := client.ListMultiRoleMetricDefinitionsComplete(ctx, id) @@ -467,7 +468,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListMultiRolePoolSkus(ctx, id)` can be used to do batched pagination items, err := client.ListMultiRolePoolSkusComplete(ctx, id) @@ -484,7 +485,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListMultiRolePools(ctx, id)` can be used to do batched pagination items, err := client.ListMultiRolePoolsComplete(ctx, id) @@ -501,7 +502,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListMultiRoleUsages(ctx, id)` can be used to do batched pagination items, err := client.ListMultiRoleUsagesComplete(ctx, id) @@ -518,7 +519,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.ListOperations(ctx, id) if err != nil { @@ -534,7 +535,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListUsages(ctx, id, appserviceenvironments.DefaultListUsagesOperationOptions())` can be used to do batched pagination items, err := client.ListUsagesComplete(ctx, id, appserviceenvironments.DefaultListUsagesOperationOptions()) @@ -551,7 +552,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListWebApps(ctx, id, appserviceenvironments.DefaultListWebAppsOperationOptions())` can be used to do batched pagination items, err := client.ListWebAppsComplete(ctx, id, appserviceenvironments.DefaultListWebAppsOperationOptions()) @@ -636,7 +637,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListWorkerPools(ctx, id)` can be used to do batched pagination items, err := client.ListWorkerPoolsComplete(ctx, id) @@ -653,7 +654,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.Reboot(ctx, id) if err != nil { @@ -669,7 +670,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.Resume(ctx, id)` can be used to do batched pagination items, err := client.ResumeComplete(ctx, id) @@ -686,7 +687,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.Suspend(ctx, id)` can be used to do batched pagination items, err := client.SuspendComplete(ctx, id) @@ -703,7 +704,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.TestUpgradeAvailableNotification(ctx, id) if err != nil { @@ -719,7 +720,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") payload := appserviceenvironments.AppServiceEnvironmentPatchResource{ // ... @@ -740,7 +741,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") payload := appserviceenvironments.CustomDnsSuffixConfiguration{ // ... @@ -761,7 +762,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") payload := appserviceenvironments.AseV3NetworkingConfiguration{ // ... @@ -782,7 +783,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") payload := appserviceenvironments.WorkerPoolResource{ // ... @@ -824,7 +825,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") if err := client.UpgradeThenPoll(ctx, id); err != nil { // handle the error diff --git a/resource-manager/web/2023-01-01/appserviceplans/README.md b/resource-manager/web/2023-01-01/appserviceplans/README.md index 603bbbe6c83..e632551bf3d 100644 --- a/resource-manager/web/2023-01-01/appserviceplans/README.md +++ b/resource-manager/web/2023-01-01/appserviceplans/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") payload := appserviceplans.AppServicePlan{ // ... @@ -62,7 +63,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") read, err := client.Delete(ctx, id) if err != nil { @@ -110,7 +111,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") read, err := client.Get(ctx, id) if err != nil { @@ -142,7 +143,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") read, err := client.GetHybridConnectionPlanLimit(ctx, id) if err != nil { @@ -174,7 +175,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") read, err := client.GetServerFarmSkus(ctx, id) if err != nil { @@ -222,7 +223,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, appserviceplans.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, appserviceplans.DefaultListOperationOptions()) @@ -239,7 +240,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceplans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -256,7 +257,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") read, err := client.ListCapabilities(ctx, id) if err != nil { @@ -288,7 +289,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") // alternatively `client.ListHybridConnections(ctx, id)` can be used to do batched pagination items, err := client.ListHybridConnectionsComplete(ctx, id) @@ -321,7 +322,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") // alternatively `client.ListUsages(ctx, id, appserviceplans.DefaultListUsagesOperationOptions())` can be used to do batched pagination items, err := client.ListUsagesComplete(ctx, id, appserviceplans.DefaultListUsagesOperationOptions()) @@ -338,7 +339,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") read, err := client.ListVnets(ctx, id) if err != nil { @@ -354,7 +355,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") // alternatively `client.ListWebApps(ctx, id, appserviceplans.DefaultListWebAppsOperationOptions())` can be used to do batched pagination items, err := client.ListWebAppsComplete(ctx, id, appserviceplans.DefaultListWebAppsOperationOptions()) @@ -404,7 +405,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") read, err := client.RestartWebApps(ctx, id, appserviceplans.DefaultRestartWebAppsOperationOptions()) if err != nil { @@ -420,7 +421,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") payload := appserviceplans.AppServicePlanPatchResource{ // ... diff --git a/resource-manager/web/2023-01-01/certificates/README.md b/resource-manager/web/2023-01-01/certificates/README.md index 1d6e34edc36..3ce11a430a6 100644 --- a/resource-manager/web/2023-01-01/certificates/README.md +++ b/resource-manager/web/2023-01-01/certificates/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/certificates" ``` @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificates.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, certificates.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, certificates.DefaultListOperationOptions()) @@ -94,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := certificates.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/web/2023-01-01/containerapps/README.md b/resource-manager/web/2023-01-01/containerapps/README.md index 0d843b83cbf..9631c79ded1 100644 --- a/resource-manager/web/2023-01-01/containerapps/README.md +++ b/resource-manager/web/2023-01-01/containerapps/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/containerapps" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerapps.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := containerapps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/web/2023-01-01/deletedwebapps/README.md b/resource-manager/web/2023-01-01/deletedwebapps/README.md index 8fe000815de..f0640244c8c 100644 --- a/resource-manager/web/2023-01-01/deletedwebapps/README.md +++ b/resource-manager/web/2023-01-01/deletedwebapps/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/deletedwebapps" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deletedwebapps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/web/2023-01-01/diagnostics/README.md b/resource-manager/web/2023-01-01/diagnostics/README.md index dc0b619e5b0..3bfb2ae53da 100644 --- a/resource-manager/web/2023-01-01/diagnostics/README.md +++ b/resource-manager/web/2023-01-01/diagnostics/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/diagnostics" ``` @@ -232,7 +233,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diagnostics.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListHostingEnvironmentDetectorResponses(ctx, id)` can be used to do batched pagination items, err := client.ListHostingEnvironmentDetectorResponsesComplete(ctx, id) @@ -283,7 +284,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diagnostics.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListSiteDetectorResponses(ctx, id)` can be used to do batched pagination items, err := client.ListSiteDetectorResponsesComplete(ctx, id) @@ -351,7 +352,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diagnostics.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListSiteDiagnosticCategories(ctx, id)` can be used to do batched pagination items, err := client.ListSiteDiagnosticCategoriesComplete(ctx, id) diff --git a/resource-manager/web/2023-01-01/domains/README.md b/resource-manager/web/2023-01-01/domains/README.md index 1d815ed1611..13917affbe8 100644 --- a/resource-manager/web/2023-01-01/domains/README.md +++ b/resource-manager/web/2023-01-01/domains/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/domains" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := domains.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := domains.NameIdentifier{ // ... @@ -131,7 +132,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := domains.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.GetControlCenterSsoRequest(ctx, id) if err != nil { @@ -163,7 +164,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := domains.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -180,7 +181,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := domains.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -214,7 +215,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := domains.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := domains.DomainRecommendationSearchParameters{ // ... diff --git a/resource-manager/web/2023-01-01/kubeenvironments/README.md b/resource-manager/web/2023-01-01/kubeenvironments/README.md index 846e1fdc40d..53dc584c0f6 100644 --- a/resource-manager/web/2023-01-01/kubeenvironments/README.md +++ b/resource-manager/web/2023-01-01/kubeenvironments/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/kubeenvironments" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := kubeenvironments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := kubeenvironments.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/web/2023-01-01/provider/README.md b/resource-manager/web/2023-01-01/provider/README.md index a3e7688d66e..46fd901ad93 100644 --- a/resource-manager/web/2023-01-01/provider/README.md +++ b/resource-manager/web/2023-01-01/provider/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/provider" ``` @@ -41,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := provider.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.GetAvailableStacksOnPrem(ctx, id, provider.DefaultGetAvailableStacksOnPremOperationOptions())` can be used to do batched pagination items, err := client.GetAvailableStacksOnPremComplete(ctx, id, provider.DefaultGetAvailableStacksOnPremOperationOptions()) diff --git a/resource-manager/web/2023-01-01/recommendations/README.md b/resource-manager/web/2023-01-01/recommendations/README.md index 198fa74fd04..85d72302dab 100644 --- a/resource-manager/web/2023-01-01/recommendations/README.md +++ b/resource-manager/web/2023-01-01/recommendations/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/recommendations" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := recommendations.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.DisableAllForHostingEnvironment(ctx, id, recommendations.DefaultDisableAllForHostingEnvironmentOperationOptions()) if err != nil { @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recommendations.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.DisableAllForWebApp(ctx, id) if err != nil { @@ -136,7 +137,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recommendations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id, recommendations.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, recommendations.DefaultListOperationOptions()) @@ -153,7 +154,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := recommendations.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListHistoryForHostingEnvironment(ctx, id, recommendations.DefaultListHistoryForHostingEnvironmentOperationOptions())` can be used to do batched pagination items, err := client.ListHistoryForHostingEnvironmentComplete(ctx, id, recommendations.DefaultListHistoryForHostingEnvironmentOperationOptions()) @@ -170,7 +171,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := recommendations.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListHistoryForWebApp(ctx, id, recommendations.DefaultListHistoryForWebAppOperationOptions())` can be used to do batched pagination items, err := client.ListHistoryForWebAppComplete(ctx, id, recommendations.DefaultListHistoryForWebAppOperationOptions()) @@ -187,7 +188,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := recommendations.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") // alternatively `client.ListRecommendedRulesForHostingEnvironment(ctx, id, recommendations.DefaultListRecommendedRulesForHostingEnvironmentOperationOptions())` can be used to do batched pagination items, err := client.ListRecommendedRulesForHostingEnvironmentComplete(ctx, id, recommendations.DefaultListRecommendedRulesForHostingEnvironmentOperationOptions()) @@ -204,7 +205,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := recommendations.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListRecommendedRulesForWebApp(ctx, id, recommendations.DefaultListRecommendedRulesForWebAppOperationOptions())` can be used to do batched pagination items, err := client.ListRecommendedRulesForWebAppComplete(ctx, id, recommendations.DefaultListRecommendedRulesForWebAppOperationOptions()) @@ -221,7 +222,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := recommendations.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ResetAllFilters(ctx, id) if err != nil { @@ -237,7 +238,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recommendations.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") read, err := client.ResetAllFiltersForHostingEnvironment(ctx, id, recommendations.DefaultResetAllFiltersForHostingEnvironmentOperationOptions()) if err != nil { @@ -253,7 +254,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recommendations.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ResetAllFiltersForWebApp(ctx, id) if err != nil { diff --git a/resource-manager/web/2023-01-01/resourcehealthmetadata/README.md b/resource-manager/web/2023-01-01/resourcehealthmetadata/README.md index b6b34ec640a..dfcfc30bdf1 100644 --- a/resource-manager/web/2023-01-01/resourcehealthmetadata/README.md +++ b/resource-manager/web/2023-01-01/resourcehealthmetadata/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourcehealthmetadata" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resourcehealthmetadata.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetBySite(ctx, id) if err != nil { @@ -56,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcehealthmetadata.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -73,7 +74,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourcehealthmetadata.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -90,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourcehealthmetadata.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListBySite(ctx, id)` can be used to do batched pagination items, err := client.ListBySiteComplete(ctx, id) diff --git a/resource-manager/web/2023-01-01/resourceproviders/README.md b/resource-manager/web/2023-01-01/resourceproviders/README.md index dfc2435f87c..24eec0471d0 100644 --- a/resource-manager/web/2023-01-01/resourceproviders/README.md +++ b/resource-manager/web/2023-01-01/resourceproviders/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders" ``` @@ -24,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := resourceproviders.ResourceNameAvailabilityRequest{ // ... @@ -77,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.GetSubscriptionDeploymentLocations(ctx, id) if err != nil { @@ -110,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListAseRegions(ctx, id)` can be used to do batched pagination items, err := client.ListAseRegionsComplete(ctx, id) @@ -127,7 +128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBillingMeters(ctx, id, resourceproviders.DefaultListBillingMetersOperationOptions())` can be used to do batched pagination items, err := client.ListBillingMetersComplete(ctx, id, resourceproviders.DefaultListBillingMetersOperationOptions()) @@ -144,7 +145,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListCustomHostNameSites(ctx, id, resourceproviders.DefaultListCustomHostNameSitesOperationOptions())` can be used to do batched pagination items, err := client.ListCustomHostNameSitesComplete(ctx, id, resourceproviders.DefaultListCustomHostNameSitesOperationOptions()) @@ -161,7 +162,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListGeoRegions(ctx, id, resourceproviders.DefaultListGeoRegionsOperationOptions())` can be used to do batched pagination items, err := client.ListGeoRegionsComplete(ctx, id, resourceproviders.DefaultListGeoRegionsOperationOptions()) @@ -178,7 +179,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListPremierAddOnOffers(ctx, id)` can be used to do batched pagination items, err := client.ListPremierAddOnOffersComplete(ctx, id) @@ -195,7 +196,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := resourceproviders.NameIdentifier{ // ... @@ -217,7 +218,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") read, err := client.ListSkus(ctx, id) if err != nil { @@ -250,7 +251,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceproviders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resourceproviders.CsmMoveResourceEnvelope{ // ... @@ -312,7 +313,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceproviders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resourceproviders.ValidateRequest{ // ... @@ -333,7 +334,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceproviders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") payload := resourceproviders.CsmMoveResourceEnvelope{ // ... @@ -354,7 +355,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") payload := resourceproviders.VnetParameters{ // ... diff --git a/resource-manager/web/2023-01-01/staticsites/README.md b/resource-manager/web/2023-01-01/staticsites/README.md index dcaa8bf060f..5b573d21e91 100644 --- a/resource-manager/web/2023-01-01/staticsites/README.md +++ b/resource-manager/web/2023-01-01/staticsites/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites" ``` @@ -745,7 +746,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.GetStaticSitesByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.GetStaticSitesByResourceGroupComplete(ctx, id) @@ -862,7 +863,7 @@ if err := client.LinkBackendToBuildThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := staticsites.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/web/2023-01-01/topleveldomains/README.md b/resource-manager/web/2023-01-01/topleveldomains/README.md index 7162a4490f8..2bd24e877e6 100644 --- a/resource-manager/web/2023-01-01/topleveldomains/README.md +++ b/resource-manager/web/2023-01-01/topleveldomains/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/topleveldomains" ``` @@ -40,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := topleveldomains.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/resource-manager/web/2023-01-01/webapps/README.md b/resource-manager/web/2023-01-01/webapps/README.md index 7de90f20ca4..27c35f23e5b 100644 --- a/resource-manager/web/2023-01-01/webapps/README.md +++ b/resource-manager/web/2023-01-01/webapps/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps" ``` @@ -66,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.AnalyzeCustomHostname(ctx, id, webapps.DefaultAnalyzeCustomHostnameOperationOptions()) if err != nil { @@ -98,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.CsmSlotEntity{ // ... @@ -174,7 +175,7 @@ if err := client.ApproveOrRejectPrivateEndpointConnectionSlotThenPoll(ctx, id, p ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.BackupRequest{ // ... @@ -326,7 +327,7 @@ if err := client.CreateInstanceMSDeployOperationSlotThenPoll(ctx, id, payload); ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.MSDeploy{ // ... @@ -360,7 +361,7 @@ if err := client.CreateMSDeployOperationSlotThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.CreateOneDeployOperation(ctx, id) if err != nil { @@ -376,7 +377,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.Site{ // ... @@ -393,7 +394,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SiteConfigResource{ // ... @@ -746,7 +747,7 @@ if err := client.CreateOrUpdateSlotThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SiteSourceControl{ // ... @@ -780,7 +781,7 @@ if err := client.CreateOrUpdateSourceControlSlotThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SwiftVirtualNetwork{ // ... @@ -906,7 +907,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.Delete(ctx, id, webapps.DefaultDeleteOperationOptions()) if err != nil { @@ -938,7 +939,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.DeleteBackupConfiguration(ctx, id) if err != nil { @@ -1474,7 +1475,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.DeleteSourceControl(ctx, id, webapps.DefaultDeleteSourceControlOperationOptions()) if err != nil { @@ -1506,7 +1507,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.DeleteSwiftVirtualNetwork(ctx, id) if err != nil { @@ -1602,7 +1603,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.WorkflowArtifacts{ // ... @@ -1644,7 +1645,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.RestoreRequest{ // ... @@ -1686,7 +1687,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GenerateNewSitePublishingPassword(ctx, id) if err != nil { @@ -1718,7 +1719,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.Get(ctx, id) if err != nil { @@ -1766,7 +1767,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.GetAppSettingsKeyVaultReferences(ctx, id)` can be used to do batched pagination items, err := client.GetAppSettingsKeyVaultReferencesComplete(ctx, id) @@ -1800,7 +1801,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetAuthSettings(ctx, id) if err != nil { @@ -1832,7 +1833,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetAuthSettingsV2(ctx, id) if err != nil { @@ -1864,7 +1865,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetAuthSettingsV2WithoutSecrets(ctx, id) if err != nil { @@ -1896,7 +1897,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetBackupConfiguration(ctx, id) if err != nil { @@ -1960,7 +1961,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetConfiguration(ctx, id) if err != nil { @@ -2024,7 +2025,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetContainerLogsZip(ctx, id) if err != nil { @@ -2120,7 +2121,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetDiagnosticLogsConfiguration(ctx, id) if err != nil { @@ -2184,7 +2185,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetFtpAllowed(ctx, id) if err != nil { @@ -2232,7 +2233,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetFunctionsAdminToken(ctx, id) if err != nil { @@ -2552,7 +2553,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetMSDeployLog(ctx, id) if err != nil { @@ -2584,7 +2585,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetMSDeployStatus(ctx, id) if err != nil { @@ -2616,7 +2617,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetMigrateMySqlStatus(ctx, id) if err != nil { @@ -2712,7 +2713,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetOneDeployStatus(ctx, id) if err != nil { @@ -2760,7 +2761,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetPrivateAccess(ctx, id) if err != nil { @@ -2808,7 +2809,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.GetPrivateEndpointConnectionList(ctx, id)` can be used to do batched pagination items, err := client.GetPrivateEndpointConnectionListComplete(ctx, id) @@ -2858,7 +2859,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetPrivateLinkResources(ctx, id) if err != nil { @@ -3050,7 +3051,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetScmAllowed(ctx, id) if err != nil { @@ -3114,7 +3115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.GetSiteConnectionStringKeyVaultReferences(ctx, id)` can be used to do batched pagination items, err := client.GetSiteConnectionStringKeyVaultReferencesComplete(ctx, id) @@ -3180,7 +3181,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetSitePhpErrorLogFlag(ctx, id) if err != nil { @@ -3228,7 +3229,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetSourceControl(ctx, id) if err != nil { @@ -3260,7 +3261,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetSwiftVirtualNetworkConnection(ctx, id) if err != nil { @@ -3452,7 +3453,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.GetWebSiteContainerLogs(ctx, id) if err != nil { @@ -3524,7 +3525,7 @@ if err := client.InstallSiteExtensionSlotThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.IsCloneable(ctx, id) if err != nil { @@ -3556,7 +3557,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -3573,7 +3574,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListApplicationSettings(ctx, id) if err != nil { @@ -3605,7 +3606,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListAzureStorageAccounts(ctx, id) if err != nil { @@ -3679,7 +3680,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListBackups(ctx, id)` can be used to do batched pagination items, err := client.ListBackupsComplete(ctx, id) @@ -3713,7 +3714,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListBasicPublishingCredentialsPolicies(ctx, id)` can be used to do batched pagination items, err := client.ListBasicPublishingCredentialsPoliciesComplete(ctx, id) @@ -3747,7 +3748,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id, webapps.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id, webapps.DefaultListByResourceGroupOperationOptions()) @@ -3764,7 +3765,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListConfigurationSnapshotInfo(ctx, id)` can be used to do batched pagination items, err := client.ListConfigurationSnapshotInfoComplete(ctx, id) @@ -3798,7 +3799,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListConfigurations(ctx, id)` can be used to do batched pagination items, err := client.ListConfigurationsComplete(ctx, id) @@ -3832,7 +3833,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListConnectionStrings(ctx, id) if err != nil { @@ -3864,7 +3865,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListContinuousWebJobs(ctx, id)` can be used to do batched pagination items, err := client.ListContinuousWebJobsComplete(ctx, id) @@ -3930,7 +3931,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListDeployments(ctx, id)` can be used to do batched pagination items, err := client.ListDeploymentsComplete(ctx, id) @@ -3964,7 +3965,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListDomainOwnershipIdentifiers(ctx, id)` can be used to do batched pagination items, err := client.ListDomainOwnershipIdentifiersComplete(ctx, id) @@ -4062,7 +4063,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListFunctions(ctx, id)` can be used to do batched pagination items, err := client.ListFunctionsComplete(ctx, id) @@ -4079,7 +4080,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListHostKeys(ctx, id) if err != nil { @@ -4111,7 +4112,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListHostNameBindings(ctx, id)` can be used to do batched pagination items, err := client.ListHostNameBindingsComplete(ctx, id) @@ -4145,7 +4146,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListHybridConnections(ctx, id) if err != nil { @@ -4194,7 +4195,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListInstanceIdentifiers(ctx, id)` can be used to do batched pagination items, err := client.ListInstanceIdentifiersComplete(ctx, id) @@ -4347,7 +4348,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListMetadata(ctx, id) if err != nil { @@ -4411,7 +4412,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListPerfMonCounters(ctx, id, webapps.DefaultListPerfMonCountersOperationOptions())` can be used to do batched pagination items, err := client.ListPerfMonCountersComplete(ctx, id, webapps.DefaultListPerfMonCountersOperationOptions()) @@ -4445,7 +4446,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListPremierAddOns(ctx, id) if err != nil { @@ -4545,7 +4546,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListProcesses(ctx, id)` can be used to do batched pagination items, err := client.ListProcessesComplete(ctx, id) @@ -4579,7 +4580,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListProductionSiteDeploymentStatuses(ctx, id)` can be used to do batched pagination items, err := client.ListProductionSiteDeploymentStatusesComplete(ctx, id) @@ -4596,7 +4597,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListPublicCertificates(ctx, id)` can be used to do batched pagination items, err := client.ListPublicCertificatesComplete(ctx, id) @@ -4630,7 +4631,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") if err := client.ListPublishingCredentialsThenPoll(ctx, id); err != nil { // handle the error @@ -4654,7 +4655,7 @@ if err := client.ListPublishingCredentialsSlotThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.CsmPublishingProfileOptions{ // ... @@ -4696,7 +4697,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListRelayServiceConnections(ctx, id) if err != nil { @@ -4728,7 +4729,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListSiteBackups(ctx, id)` can be used to do batched pagination items, err := client.ListSiteBackupsComplete(ctx, id) @@ -4762,7 +4763,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListSiteExtensions(ctx, id)` can be used to do batched pagination items, err := client.ListSiteExtensionsComplete(ctx, id) @@ -4796,7 +4797,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListSitePushSettings(ctx, id) if err != nil { @@ -4828,7 +4829,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListSlotConfigurationNames(ctx, id) if err != nil { @@ -4844,7 +4845,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.CsmSlotEntity{ // ... @@ -4905,7 +4906,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListSlots(ctx, id)` can be used to do batched pagination items, err := client.ListSlotsComplete(ctx, id) @@ -4922,7 +4923,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListSnapshots(ctx, id)` can be used to do batched pagination items, err := client.ListSnapshotsComplete(ctx, id) @@ -4939,7 +4940,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListSnapshotsFromDRSecondary(ctx, id)` can be used to do batched pagination items, err := client.ListSnapshotsFromDRSecondaryComplete(ctx, id) @@ -4990,7 +4991,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListSyncFunctionTriggers(ctx, id) if err != nil { @@ -5022,7 +5023,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListSyncStatus(ctx, id) if err != nil { @@ -5088,7 +5089,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListTriggeredWebJobs(ctx, id)` can be used to do batched pagination items, err := client.ListTriggeredWebJobsComplete(ctx, id) @@ -5122,7 +5123,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListUsages(ctx, id, webapps.DefaultListUsagesOperationOptions())` can be used to do batched pagination items, err := client.ListUsagesComplete(ctx, id, webapps.DefaultListUsagesOperationOptions()) @@ -5156,7 +5157,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListVnetConnections(ctx, id) if err != nil { @@ -5188,7 +5189,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListWebJobs(ctx, id)` can be used to do batched pagination items, err := client.ListWebJobsComplete(ctx, id) @@ -5222,7 +5223,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") // alternatively `client.ListWorkflows(ctx, id)` can be used to do batched pagination items, err := client.ListWorkflowsComplete(ctx, id) @@ -5239,7 +5240,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ListWorkflowsConnections(ctx, id) if err != nil { @@ -5271,7 +5272,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.MigrateMySqlRequest{ // ... @@ -5288,7 +5289,7 @@ if err := client.MigrateMySqlThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.StorageMigrationOptions{ // ... @@ -5305,7 +5306,7 @@ if err := client.MigrateStorageThenPoll(ctx, id, payload, webapps.DefaultMigrate ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.PrivateAccess{ // ... @@ -5379,7 +5380,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.ResetProductionSlotConfig(ctx, id) if err != nil { @@ -5411,7 +5412,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.Restart(ctx, id, webapps.DefaultRestartOperationOptions()) if err != nil { @@ -5460,7 +5461,7 @@ if err := client.RestoreThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.RestoreRequest{ // ... @@ -5494,7 +5495,7 @@ if err := client.RestoreFromBackupBlobSlotThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.DeletedAppRestoreRequest{ // ... @@ -5545,7 +5546,7 @@ if err := client.RestoreSlotThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SnapshotRestoreRequest{ // ... @@ -5611,7 +5612,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.Start(ctx, id) if err != nil { @@ -5659,7 +5660,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") if err := client.StartNetworkTraceThenPoll(ctx, id, webapps.DefaultStartNetworkTraceOperationOptions()); err != nil { // handle the error @@ -5699,7 +5700,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.StartWebSiteNetworkTrace(ctx, id, webapps.DefaultStartWebSiteNetworkTraceOperationOptions()) if err != nil { @@ -5715,7 +5716,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") if err := client.StartWebSiteNetworkTraceOperationThenPoll(ctx, id, webapps.DefaultStartWebSiteNetworkTraceOperationOperationOptions()); err != nil { // handle the error @@ -5755,7 +5756,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.Stop(ctx, id) if err != nil { @@ -5803,7 +5804,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.StopNetworkTrace(ctx, id) if err != nil { @@ -5851,7 +5852,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.StopWebSiteNetworkTrace(ctx, id) if err != nil { @@ -5900,7 +5901,7 @@ if err := client.SwapSlotSlotThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.CsmSlotEntity{ // ... @@ -5917,7 +5918,7 @@ if err := client.SwapSlotWithProductionThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.SyncFunctionTriggers(ctx, id) if err != nil { @@ -5949,7 +5950,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.SyncFunctions(ctx, id) if err != nil { @@ -5981,7 +5982,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") read, err := client.SyncRepository(ctx, id) if err != nil { @@ -6013,7 +6014,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SitePatchResource{ // ... @@ -6034,7 +6035,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.StringDictionary{ // ... @@ -6076,7 +6077,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SiteAuthSettings{ // ... @@ -6118,7 +6119,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SiteAuthSettingsV2{ // ... @@ -6160,7 +6161,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.AzureStoragePropertyDictionaryResource{ // ... @@ -6202,7 +6203,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.BackupRequest{ // ... @@ -6244,7 +6245,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SiteConfigResource{ // ... @@ -6286,7 +6287,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.ConnectionStringDictionary{ // ... @@ -6328,7 +6329,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SiteLogsConfig{ // ... @@ -6412,7 +6413,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.CsmPublishingCredentialsPoliciesEntity{ // ... @@ -6496,7 +6497,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.StringDictionary{ // ... @@ -6622,7 +6623,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.CsmPublishingCredentialsPoliciesEntity{ // ... @@ -6664,7 +6665,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.PushSettings{ // ... @@ -6727,7 +6728,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SlotConfigNamesResource{ // ... @@ -6748,7 +6749,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SiteSourceControl{ // ... @@ -6790,7 +6791,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") payload := webapps.SwiftVirtualNetwork{ // ... diff --git a/resource-manager/webpubsub/2023-02-01/webpubsub/README.md b/resource-manager/webpubsub/2023-02-01/webpubsub/README.md index fa2bbec3a42..fa2b31f9b94 100644 --- a/resource-manager/webpubsub/2023-02-01/webpubsub/README.md +++ b/resource-manager/webpubsub/2023-02-01/webpubsub/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub" ``` @@ -280,7 +281,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webpubsub.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -297,7 +298,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webpubsub.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id) diff --git a/resource-manager/workloads/2023-04-01/monitors/README.md b/resource-manager/workloads/2023-04-01/monitors/README.md index 28101b75672..d9f988b29c4 100644 --- a/resource-manager/workloads/2023-04-01/monitors/README.md +++ b/resource-manager/workloads/2023-04-01/monitors/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := monitors.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitors.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/resource-manager/workloads/2023-04-01/sapvirtualinstances/README.md b/resource-manager/workloads/2023-04-01/sapvirtualinstances/README.md index 964d6d29950..95668238825 100644 --- a/resource-manager/workloads/2023-04-01/sapvirtualinstances/README.md +++ b/resource-manager/workloads/2023-04-01/sapvirtualinstances/README.md @@ -8,6 +8,7 @@ This readme covers example usages, but further information on [using this SDK ca ### Import Path ```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" import "github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances" ``` @@ -69,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sapvirtualinstances.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -86,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sapvirtualinstances.NewSubscriptionID("12345678-1234-9876-4563-123456789012") +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") // alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination items, err := client.ListBySubscriptionComplete(ctx, id)