From 01013455cea077b5fc63966eff7f106bdb868fb1 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 19 Dec 2023 18:28:47 -0800 Subject: [PATCH] [Release] sdk/resourcemanager/selfhelp/armselfhelp/2.0.0-beta.3 generation from spec commit: b8c74fd80b415fa1ebb6fa787d454694c39e0fd5 (#22077) Co-authored-by: ReleaseHelper --- .../selfhelp/armselfhelp/CHANGELOG.md | 12 + .../selfhelp/armselfhelp/autorest.md | 6 +- .../checknameavailability_client.go | 3 +- ...ecknameavailability_client_example_test.go | 4 +- .../selfhelp/armselfhelp/constants.go | 26 +- .../armselfhelp/diagnostics_client.go | 18 +- .../diagnostics_client_example_test.go | 54 +-- .../armselfhelp/discoverysolution_client.go | 8 +- .../discoverysolution_client_example_test.go | 62 ++- .../selfhelp/armselfhelp/models.go | 42 +- .../selfhelp/armselfhelp/models_serde.go | 4 + .../operations_client_example_test.go | 2 +- .../selfhelp/armselfhelp/options.go | 7 +- .../selfhelp/armselfhelp/solution_client.go | 37 +- .../solution_client_example_test.go | 417 +++++++----------- .../armselfhelp/troubleshooters_client.go | 30 +- .../troubleshooters_client_example_test.go | 14 +- 17 files changed, 370 insertions(+), 376 deletions(-) diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/CHANGELOG.md b/sdk/resourcemanager/selfhelp/armselfhelp/CHANGELOG.md index c1dd33999e24..08509dd12e80 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/CHANGELOG.md +++ b/sdk/resourcemanager/selfhelp/armselfhelp/CHANGELOG.md @@ -1,5 +1,17 @@ # Release History +## 2.0.0-beta.3 (2023-12-22) +### Breaking Changes + +- Type of `StepInput.QuestionType` has been changed from `*string` to `*QuestionType` + +### Features Added + +- New value `DiagnosticProvisioningStateRunning` added to enum type `DiagnosticProvisioningState` +- New value `SolutionProvisioningStatePartialComplete`, `SolutionProvisioningStateRunning` added to enum type `SolutionProvisioningState` +- New field `SystemData` in struct `SolutionResource` + + ## 2.0.0-beta.2 (2023-11-30) ### Features Added diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/autorest.md b/sdk/resourcemanager/selfhelp/armselfhelp/autorest.md index 76bf3b91f9da..19eb43da4cb1 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/autorest.md +++ b/sdk/resourcemanager/selfhelp/armselfhelp/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 2.0.0-beta.2 +module-version: 2.0.0-beta.3 tag: package-2023-09-01-preview ``` \ No newline at end of file diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/checknameavailability_client.go b/sdk/resourcemanager/selfhelp/armselfhelp/checknameavailability_client.go index 00da8efec6fe..8304c8494237 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/checknameavailability_client.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/checknameavailability_client.go @@ -42,7 +42,8 @@ func NewCheckNameAvailabilityClient(credential azcore.TokenCredential, options * // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 2023-09-01-preview -// - scope - This is an extension resource provider and only resource level extension is supported at the moment. +// - scope - scope = resourceUri of affected resource. +// For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read // - options - CheckNameAvailabilityClientPostOptions contains the optional parameters for the CheckNameAvailabilityClient.Post // method. func (client *CheckNameAvailabilityClient) Post(ctx context.Context, scope string, options *CheckNameAvailabilityClientPostOptions) (CheckNameAvailabilityClientPostResponse, error) { diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/checknameavailability_client_example_test.go b/sdk/resourcemanager/selfhelp/armselfhelp/checknameavailability_client_example_test.go index 5a1317538c52..d49f5bf2dcb3 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/checknameavailability_client_example_test.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/checknameavailability_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhelp/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/CheckNameAvailabilityForDiagnosticWhenNameIsAvailable.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/CheckNameAvailabilityForDiagnosticWhenNameIsAvailable.json func ExampleCheckNameAvailabilityClient_Post_exampleWhenNameIsAvailableForADiagnosticResource() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -45,7 +45,7 @@ func ExampleCheckNameAvailabilityClient_Post_exampleWhenNameIsAvailableForADiagn // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/CheckNameAvailabilityForDiagnosticWhenNameIsNotAvailable.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/CheckNameAvailabilityForDiagnosticWhenNameIsNotAvailable.json func ExampleCheckNameAvailabilityClient_Post_exampleWhenNameIsNotAvailableForADiagnosticResource() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/constants.go b/sdk/resourcemanager/selfhelp/armselfhelp/constants.go index 40389b912112..71238564a746 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/constants.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/constants.go @@ -10,7 +10,7 @@ package armselfhelp const ( moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhelp" - moduleVersion = "v2.0.0-beta.2" + moduleVersion = "v2.0.0-beta.3" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. @@ -117,6 +117,8 @@ const ( DiagnosticProvisioningStateFailed DiagnosticProvisioningState = "Failed" // DiagnosticProvisioningStatePartialComplete - Some Diagnostics are still running or failed. DiagnosticProvisioningStatePartialComplete DiagnosticProvisioningState = "PartialComplete" + // DiagnosticProvisioningStateRunning - All Diagnostics are still running. + DiagnosticProvisioningStateRunning DiagnosticProvisioningState = "Running" // DiagnosticProvisioningStateSucceeded - All Diagnostics in the Batch succeeded. DiagnosticProvisioningStateSucceeded DiagnosticProvisioningState = "Succeeded" ) @@ -127,6 +129,7 @@ func PossibleDiagnosticProvisioningStateValues() []DiagnosticProvisioningState { DiagnosticProvisioningStateCanceled, DiagnosticProvisioningStateFailed, DiagnosticProvisioningStatePartialComplete, + DiagnosticProvisioningStateRunning, DiagnosticProvisioningStateSucceeded, } } @@ -135,9 +138,13 @@ func PossibleDiagnosticProvisioningStateValues() []DiagnosticProvisioningState { type ExecutionStatus string const ( - ExecutionStatusFailed ExecutionStatus = "Failed" + // ExecutionStatusFailed - Step execution failed + ExecutionStatusFailed ExecutionStatus = "Failed" + // ExecutionStatusRunning - Step execution running ExecutionStatusRunning ExecutionStatus = "Running" + // ExecutionStatusSuccess - Step execution succeeded. ExecutionStatusSuccess ExecutionStatus = "Success" + // ExecutionStatusWarning - Step execution warning ExecutionStatusWarning ExecutionStatus = "Warning" ) @@ -227,7 +234,7 @@ func PossibleQuestionContentTypeValues() []QuestionContentType { } } -// QuestionType - Text Input. Will be a single line input. +// QuestionType - Type of Question type QuestionType string const ( @@ -271,8 +278,15 @@ func PossibleResultTypeValues() []ResultType { type SolutionProvisioningState string const ( - SolutionProvisioningStateCanceled SolutionProvisioningState = "Canceled" - SolutionProvisioningStateFailed SolutionProvisioningState = "Failed" + // SolutionProvisioningStateCanceled - When Solutions request gets canceled. + SolutionProvisioningStateCanceled SolutionProvisioningState = "Canceled" + // SolutionProvisioningStateFailed - All Solutions failed to run. + SolutionProvisioningStateFailed SolutionProvisioningState = "Failed" + // SolutionProvisioningStatePartialComplete - Some Solutions are still running or failed. + SolutionProvisioningStatePartialComplete SolutionProvisioningState = "PartialComplete" + // SolutionProvisioningStateRunning - All Solutions are still running. + SolutionProvisioningStateRunning SolutionProvisioningState = "Running" + // SolutionProvisioningStateSucceeded - All Solutions in the Batch succeeded. SolutionProvisioningStateSucceeded SolutionProvisioningState = "Succeeded" ) @@ -281,6 +295,8 @@ func PossibleSolutionProvisioningStateValues() []SolutionProvisioningState { return []SolutionProvisioningState{ SolutionProvisioningStateCanceled, SolutionProvisioningStateFailed, + SolutionProvisioningStatePartialComplete, + SolutionProvisioningStateRunning, SolutionProvisioningStateSucceeded, } } diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client.go b/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client.go index 5bb26186431d..c28fe99b190c 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client.go @@ -41,14 +41,15 @@ func NewDiagnosticsClient(credential azcore.TokenCredential, options *arm.Client } // BeginCreate - Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions. -// Diagnostics tells you precisely the root cause of the issue and the steps to address it. -// You can get diagnostics once you discover the relevant solution for your Azure issue. -// Note: requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics +// Diagnostics are powerful solutions that access product resources or other relevant data +// and provide the root cause of the issue and the steps to address the issue. +// Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics // API. // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 2023-09-01-preview -// - scope - This is an extension resource provider and only resource level extension is supported at the moment. +// - scope - scope = resourceUri of affected resource. +// For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read // - diagnosticsResourceName - Unique resource name for insight resources // - diagnosticResourceRequest - The required request body for this insightResource invocation. // - options - DiagnosticsClientBeginCreateOptions contains the optional parameters for the DiagnosticsClient.BeginCreate method. @@ -71,9 +72,9 @@ func (client *DiagnosticsClient) BeginCreate(ctx context.Context, scope string, } // Create - Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions. -// Diagnostics tells you precisely the root cause of the issue and the steps to address it. -// You can get diagnostics once you discover the relevant solution for your Azure issue. -// Note: requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics +// Diagnostics are powerful solutions that access product resources or other relevant data +// and provide the root cause of the issue and the steps to address the issue. +// Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics // API. // If the operation fails it returns an *azcore.ResponseError type. // @@ -125,7 +126,8 @@ func (client *DiagnosticsClient) createCreateRequest(ctx context.Context, scope // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 2023-09-01-preview -// - scope - This is an extension resource provider and only resource level extension is supported at the moment. +// - scope - scope = resourceUri of affected resource. +// For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read // - diagnosticsResourceName - Unique resource name for insight resources // - options - DiagnosticsClientGetOptions contains the optional parameters for the DiagnosticsClient.Get method. func (client *DiagnosticsClient) Get(ctx context.Context, scope string, diagnosticsResourceName string, options *DiagnosticsClientGetOptions) (DiagnosticsClientGetResponse, error) { diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client_example_test.go b/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client_example_test.go index f961bc1be19c..3ed794014379 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client_example_test.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client_example_test.go @@ -13,11 +13,12 @@ import ( "context" "log" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhelp/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/CreateDiagnosticForKeyVaultResource.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/CreateDiagnosticForKeyVaultResource.json func ExampleDiagnosticsClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -28,7 +29,17 @@ func ExampleDiagnosticsClient_BeginCreate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := clientFactory.NewDiagnosticsClient().BeginCreate(ctx, "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read", "VMNotWorkingInsight", armselfhelp.DiagnosticResource{}, nil) + poller, err := clientFactory.NewDiagnosticsClient().BeginCreate(ctx, "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read", "VMNotWorkingInsight", armselfhelp.DiagnosticResource{ + Properties: &armselfhelp.DiagnosticResourceProperties{ + Insights: []*armselfhelp.DiagnosticInvocation{ + { + SolutionID: to.Ptr("SampleSolutionId1"), + }, + { + SolutionID: to.Ptr("SampleSolutionId2"), + }}, + }, + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -44,29 +55,13 @@ func ExampleDiagnosticsClient_BeginCreate() { // Type: to.Ptr("VMNotWorkingInsight"), // ID: to.Ptr("/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read/providers/Microsoft.Help/diagnostics/VMNotWorkingInsight"), // Properties: &armselfhelp.DiagnosticResourceProperties{ - // AcceptedAt: to.Ptr("2023-03-10T03:04:40Z"), - // Diagnostics: []*armselfhelp.Diagnostic{ - // { - // Error: &armselfhelp.Error{ - // Code: to.Ptr("errorCode"), - // Message: to.Ptr("errorMessage"), - // }, - // Insights: []*armselfhelp.Insight{ - // { - // ID: to.Ptr("InsightArticleId"), - // ImportanceLevel: to.Ptr(armselfhelp.ImportanceLevelCritical), - // Results: to.Ptr("Article Content"), - // Title: to.Ptr("An example title for an Insight"), - // }}, - // SolutionID: to.Ptr("sampleSolutionId"), - // Status: to.Ptr(armselfhelp.StatusSucceeded), - // }}, + // AcceptedAt: to.Ptr("2023-11-05T18:13:15.8708055+00:00"), // ProvisioningState: to.Ptr(armselfhelp.DiagnosticProvisioningStateSucceeded), // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/GetDiagnosticForKeyVaultResource.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/GetDiagnosticForKeyVaultResource.json func ExampleDiagnosticsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -92,18 +87,25 @@ func ExampleDiagnosticsClient_Get() { // AcceptedAt: to.Ptr("2023-03-10T03:04:40Z"), // Diagnostics: []*armselfhelp.Diagnostic{ // { - // Error: &armselfhelp.Error{ - // Code: to.Ptr("errorCode"), - // Message: to.Ptr("errorMessage"), - // }, // Insights: []*armselfhelp.Insight{ // { - // ID: to.Ptr("InsightArticleId"), + // ID: to.Ptr("InsightArticleId1"), + // ImportanceLevel: to.Ptr(armselfhelp.ImportanceLevelCritical), + // Results: to.Ptr("Article Content"), + // Title: to.Ptr("An example title for an Insight"), + // }}, + // SolutionID: to.Ptr("sampleSolutionId1"), + // Status: to.Ptr(armselfhelp.StatusSucceeded), + // }, + // { + // Insights: []*armselfhelp.Insight{ + // { + // ID: to.Ptr("InsightArticleId3"), // ImportanceLevel: to.Ptr(armselfhelp.ImportanceLevelCritical), // Results: to.Ptr("Article Content"), // Title: to.Ptr("An example title for an Insight"), // }}, - // SolutionID: to.Ptr("sampleSolutionId"), + // SolutionID: to.Ptr("sampleSolutionId2"), // Status: to.Ptr(armselfhelp.StatusSucceeded), // }}, // ProvisioningState: to.Ptr(armselfhelp.DiagnosticProvisioningStateSucceeded), diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client.go b/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client.go index d068f7383b1c..324351eee483 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client.go @@ -41,16 +41,16 @@ func NewDiscoverySolutionClient(credential azcore.TokenCredential, options *arm. // NewListPager - Lists the relevant Azure diagnostics and solutions using problemClassification API [https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP]) // AND resourceUri or // resourceType. Discovery Solutions is the initial entry point within Help API, which identifies relevant Azure diagnostics -// and solutions. We will do our best to return the most effective solutions -// based on the type of inputs, in the request URL -// Mandatory input : problemClassificationId (Use the problemClassification API [https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP]) +// and solutions. +// Required Input : problemClassificationId (Use the problemClassification API [https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP]) // Optional input: resourceUri OR // resource Type // Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics // and Solutions API. // // Generated from API version 2023-09-01-preview -// - scope - This is an extension resource provider and only resource level extension is supported at the moment. +// - scope - scope = resourceUri of affected resource. +// For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read // - options - DiscoverySolutionClientListOptions contains the optional parameters for the DiscoverySolutionClient.NewListPager // method. func (client *DiscoverySolutionClient) NewListPager(scope string, options *DiscoverySolutionClientListOptions) *runtime.Pager[DiscoverySolutionClientListResponse] { diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client_example_test.go b/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client_example_test.go index 3f130375419e..3b35996aa84b 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client_example_test.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhelp/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/ListDiscoverySolutionsAtResourceScope.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/ListDiscoverySolutionsAtResourceScope.json func ExampleDiscoverySolutionClient_NewListPager_listDiscoverySolutionsAtResourceScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -47,7 +47,7 @@ func ExampleDiscoverySolutionClient_NewListPager_listDiscoverySolutionsAtResourc // { // Name: to.Ptr("SampleProblemClassificationId1"), // Type: to.Ptr("Microsoft.Help/discoverySolutions"), - // ID: to.Ptr("/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read/providers/Microsoft.Help/discoverySolutions/SampleProblemClassificationId1"), + // ID: to.Ptr("/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/providers/Microsoft.Help/discoverySolutions/SampleProblemClassificationId1"), // Properties: &armselfhelp.Solutions{ // Solutions: []*armselfhelp.SolutionMetadataProperties{ // { @@ -56,14 +56,36 @@ func ExampleDiscoverySolutionClient_NewListPager_listDiscoverySolutionsAtResourc // to.Ptr("SubscriptionId")}, // SolutionID: to.Ptr("SampleSolutionId1"), // SolutionType: to.Ptr(armselfhelp.SolutionTypeDiagnostics), - // }}, + // }, + // { + // Description: to.Ptr("This is an azure solution to troubleshoot subscription issues."), + // RequiredInputs: []*string{ + // to.Ptr("SubscriptionId")}, + // SolutionID: to.Ptr("SampleSolutionId2"), + // SolutionType: to.Ptr(armselfhelp.SolutionTypeSolutions), + // }}, + // }, // }, - // }}, - // } + // { + // Name: to.Ptr("SampleProblemClassificationId2"), + // Type: to.Ptr("Microsoft.Help/discoverySolutions"), + // ID: to.Ptr("/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/providers/Microsoft.Help/discoverySolutions/SampleProblemClassificationId2"), + // Properties: &armselfhelp.Solutions{ + // Solutions: []*armselfhelp.SolutionMetadataProperties{ + // { + // Description: to.Ptr("This is an azure solution to troubleshoot subscription issues."), + // RequiredInputs: []*string{ + // to.Ptr("SubscriptionId")}, + // SolutionID: to.Ptr("SampleSolutionId3"), + // SolutionType: to.Ptr(armselfhelp.SolutionTypeDiagnostics), + // }}, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/ListDiscoverySolutionsAtSubscriptionScope.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/ListDiscoverySolutionsAtSubscriptionScope.json func ExampleDiscoverySolutionClient_NewListPager_listDiscoverySolutionsAtSubscriptionScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -101,9 +123,31 @@ func ExampleDiscoverySolutionClient_NewListPager_listDiscoverySolutionsAtSubscri // to.Ptr("SubscriptionId")}, // SolutionID: to.Ptr("SampleSolutionId1"), // SolutionType: to.Ptr(armselfhelp.SolutionTypeDiagnostics), - // }}, + // }, + // { + // Description: to.Ptr("This is an azure solution to troubleshoot subscription issues."), + // RequiredInputs: []*string{ + // to.Ptr("SubscriptionId")}, + // SolutionID: to.Ptr("SampleSolutionId2"), + // SolutionType: to.Ptr(armselfhelp.SolutionTypeSolutions), + // }}, + // }, // }, - // }}, - // } + // { + // Name: to.Ptr("SampleProblemClassificationId2"), + // Type: to.Ptr("Microsoft.Help/discoverySolutions"), + // ID: to.Ptr("/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/providers/Microsoft.Help/discoverySolutions/SampleProblemClassificationId2"), + // Properties: &armselfhelp.Solutions{ + // Solutions: []*armselfhelp.SolutionMetadataProperties{ + // { + // Description: to.Ptr("This is an azure solution to troubleshoot subscription issues."), + // RequiredInputs: []*string{ + // to.Ptr("SubscriptionId")}, + // SolutionID: to.Ptr("SampleSolutionId3"), + // SolutionType: to.Ptr(armselfhelp.SolutionTypeDiagnostics), + // }}, + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/models.go b/sdk/resourcemanager/selfhelp/armselfhelp/models.go index 942fccf47527..69ab91205215 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/models.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/models.go @@ -92,7 +92,8 @@ type DiagnosticResource struct { // DiagnosticResourceProperties - Diagnostic resource properties. type DiagnosticResourceProperties struct { - // Global parameters that can be passed to all solutionIds. + // Global parameters is an optional map which can be used to add key and value to request body to improve the diagnostics + // results GlobalParameters map[string]*string // SolutionIds that are needed to be invoked. @@ -385,7 +386,7 @@ type SolutionMetadataResource struct { Type *string } -// SolutionPatchRequestBody - Solution response. +// SolutionPatchRequestBody - Solution response type SolutionPatchRequestBody struct { // Solution result Properties *SolutionResourceProperties @@ -396,41 +397,44 @@ type SolutionResource struct { // Solution result Properties *SolutionResourceProperties - // READ-ONLY; Full resource uri of the resource. + // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string - // READ-ONLY; Resource name. + // READ-ONLY; The name of the resource Name *string - // READ-ONLY; Type of resource. + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string } // SolutionResourceProperties - Solution result type SolutionResourceProperties struct { - // The HTML content that needs to be rendered and shown to customer. - Content *string - // Client input parameters to run Solution Parameters map[string]*string - // Status of solution provisioning. + // Solution request trigger criteria + TriggerCriteria []*TriggerCriterion + + // READ-ONLY; The HTML content that needs to be rendered and shown to customer. + Content *string + + // READ-ONLY; Status of solution provisioning. ProvisioningState *SolutionProvisioningState - // Solution replacement maps. + // READ-ONLY; Solution replacement maps. ReplacementMaps *ReplacementMaps - // List of section object. + // READ-ONLY; List of section object. Sections []*Section - // Solution Id to identify single solution. + // READ-ONLY; Solution Id to identify single solution. SolutionID *string - // The title. + // READ-ONLY; The title. Title *string - - // Solution request trigger criteria - TriggerCriteria []*TriggerCriterion } // Solutions - List of solutions @@ -518,8 +522,8 @@ type StepInput struct { // Use Index as QuestionId. QuestionID *string - // Text Input. Will be a single line input. - QuestionType *string + // Type of Question + QuestionType *QuestionType // Result of Automate step. RecommendedOption *string @@ -605,7 +609,7 @@ type TroubleshooterResponse struct { // id of the question. QuestionID *string - // Text Input. Will be a single line input. + // Type of Question QuestionType *QuestionType // Response key for SingleInput. For Multi-line test/open ended question it is free form text diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/models_serde.go b/sdk/resourcemanager/selfhelp/armselfhelp/models_serde.go index 44d329abeb4d..ed804dfefeba 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/models_serde.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/models_serde.go @@ -1053,6 +1053,7 @@ func (s SolutionResource) MarshalJSON() ([]byte, error) { populate(objectMap, "id", s.ID) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) + populate(objectMap, "systemData", s.SystemData) populate(objectMap, "type", s.Type) return json.Marshal(objectMap) } @@ -1075,6 +1076,9 @@ func (s *SolutionResource) UnmarshalJSON(data []byte) error { case "properties": err = unpopulate(val, "Properties", &s.Properties) delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &s.SystemData) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/operations_client_example_test.go b/sdk/resourcemanager/selfhelp/armselfhelp/operations_client_example_test.go index e7794993c21b..1b31b0299be1 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/operations_client_example_test.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/operations_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhelp/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/ListOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/ListOperations.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/options.go b/sdk/resourcemanager/selfhelp/armselfhelp/options.go index ec04742a43fe..f8e5542ad356 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/options.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/options.go @@ -27,9 +27,10 @@ type DiagnosticsClientGetOptions struct { // DiscoverySolutionClientListOptions contains the optional parameters for the DiscoverySolutionClient.NewListPager method. type DiscoverySolutionClientListOptions struct { - // 'ProblemClassificationId' or 'Id' is a mandatory filter to get solutions ids. It also supports optional 'ResourceType' - // and 'SolutionType' filters. The filter supports only 'and', 'or' and 'eq' - // operators. Example: $filter=ProblemClassificationId eq '1ddda5b4-cf6c-4d4f-91ad-bc38ab0e811e' + // 'ProblemClassificationId' is a mandatory filter to get solutions ids. It also supports optional 'ResourceType' and 'SolutionType' + // filters. The $filter + // [https://learn.microsoft.com/en-us/odata/webapi/first-odata-api#filter] supports only 'and', 'or' and 'eq' operators. Example: + // $filter=ProblemClassificationId eq '1ddda5b4-cf6c-4d4f-91ad-bc38ab0e811e' Filter *string // Skiptoken is only used if a previous operation returned a partial result. diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/solution_client.go b/sdk/resourcemanager/selfhelp/armselfhelp/solution_client.go index c3cb3e40bc87..245e78ca5a68 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/solution_client.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/solution_client.go @@ -40,12 +40,14 @@ func NewSolutionClient(credential azcore.TokenCredential, options *arm.ClientOpt return client, nil } -// BeginCreate - Creates a solution for the specific Azure resource or subscription using the triggering criteria ‘solutionId -// and requiredInputs’ from discovery solutions. Solutions are a rich, insightful and a -// centralized self help experience that brings all the relevant content to troubleshoot an Azure issue into a unified experience. -// Solutions include the following components : Text, Diagnostics , -// Troubleshooters, Images , Video tutorials, Tables , custom charts, images , AzureKB, etc, with capabilities to support -// new solutions types in the future. Each solution type may require one or more +// BeginCreate - Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ +// from discovery solutions. Azure solutions comprise a comprehensive library of +// self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting +// issues. These solutions encompass (1.) dynamic and context-aware +// diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video tutorials and illustrative +// diagrams and images, and (3.) thoughtfully assembled textual +// troubleshooting instructions. All these components are seamlessly converged into unified solutions tailored to address +// a specific support problem area. Each solution type may require one or more // ‘requiredParameters’ that are required to execute the individual solution component. In the absence of the ‘requiredParameters’ // it is likely that some of the solutions might fail execution, and you // might see an empty response. @@ -57,7 +59,8 @@ func NewSolutionClient(credential azcore.TokenCredential, options *arm.ClientOpt // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 2023-09-01-preview -// - scope - This is an extension resource provider and only resource level extension is supported at the moment. +// - scope - scope = resourceUri of affected resource. +// For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read // - solutionResourceName - Solution resource Name. // - solutionRequestBody - The required request body for this solution resource creation. // - options - SolutionClientBeginCreateOptions contains the optional parameters for the SolutionClient.BeginCreate method. @@ -79,12 +82,14 @@ func (client *SolutionClient) BeginCreate(ctx context.Context, scope string, sol } } -// Create - Creates a solution for the specific Azure resource or subscription using the triggering criteria ‘solutionId and -// requiredInputs’ from discovery solutions. Solutions are a rich, insightful and a -// centralized self help experience that brings all the relevant content to troubleshoot an Azure issue into a unified experience. -// Solutions include the following components : Text, Diagnostics , -// Troubleshooters, Images , Video tutorials, Tables , custom charts, images , AzureKB, etc, with capabilities to support -// new solutions types in the future. Each solution type may require one or more +// Create - Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ +// from discovery solutions. Azure solutions comprise a comprehensive library of +// self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting +// issues. These solutions encompass (1.) dynamic and context-aware +// diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video tutorials and illustrative +// diagrams and images, and (3.) thoughtfully assembled textual +// troubleshooting instructions. All these components are seamlessly converged into unified solutions tailored to address +// a specific support problem area. Each solution type may require one or more // ‘requiredParameters’ that are required to execute the individual solution component. In the absence of the ‘requiredParameters’ // it is likely that some of the solutions might fail execution, and you // might see an empty response. @@ -143,7 +148,8 @@ func (client *SolutionClient) createCreateRequest(ctx context.Context, scope str // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 2023-09-01-preview -// - scope - This is an extension resource provider and only resource level extension is supported at the moment. +// - scope - scope = resourceUri of affected resource. +// For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read // - solutionResourceName - Solution resource Name. // - options - SolutionClientGetOptions contains the optional parameters for the SolutionClient.Get method. func (client *SolutionClient) Get(ctx context.Context, scope string, solutionResourceName string, options *SolutionClientGetOptions) (SolutionClientGetResponse, error) { @@ -200,7 +206,8 @@ func (client *SolutionClient) getHandleResponse(resp *http.Response) (SolutionCl // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 2023-09-01-preview -// - scope - This is an extension resource provider and only resource level extension is supported at the moment. +// - scope - scope = resourceUri of affected resource. +// For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read // - solutionResourceName - Solution resource Name. // - solutionPatchRequestBody - The required request body for updating a solution resource. // - options - SolutionClientBeginUpdateOptions contains the optional parameters for the SolutionClient.BeginUpdate method. diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/solution_client_example_test.go b/sdk/resourcemanager/selfhelp/armselfhelp/solution_client_example_test.go index f5fa88d66ea7..e0904c55d3bb 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/solution_client_example_test.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/solution_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhelp/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Solution_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Solution_Create.json func ExampleSolutionClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -31,9 +31,6 @@ func ExampleSolutionClient_BeginCreate() { } poller, err := clientFactory.NewSolutionClient().BeginCreate(ctx, "subscriptions/mySubscription/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-rp", "SolutionResourceName1", armselfhelp.SolutionResource{ Properties: &armselfhelp.SolutionResourceProperties{ - Parameters: map[string]*string{ - "resourceUri": to.Ptr("subscriptions/mySubscription/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-rp"), - }, TriggerCriteria: []*armselfhelp.TriggerCriterion{ { Name: to.Ptr(armselfhelp.NameSolutionID), @@ -83,103 +80,67 @@ func ExampleSolutionClient_BeginCreate() { // SolutionID: to.Ptr("sampleSolutionId2"), // Status: to.Ptr(armselfhelp.StatusFailed), // StatusDetails: to.Ptr(""), + // }}, + // MetricsBasedCharts: []*armselfhelp.MetricsBasedChart{ + // { + // Name: to.Ptr("CPU_percent"), + // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), + // ReplacementKey: to.Ptr(""), + // TimeSpanDuration: to.Ptr("1d"), + // Title: to.Ptr("CPU Usage in the last one day"), // }, // { - // Insights: []*armselfhelp.Insight{ - // }, + // Name: to.Ptr("memory_percent"), + // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), // ReplacementKey: to.Ptr(""), - // RequiredParameters: []*string{ - // to.Ptr("parameter1"), - // to.Ptr("parameter2")}, - // SolutionID: to.Ptr("sampleSolutionId3"), - // Status: to.Ptr(armselfhelp.StatusFailed), - // StatusDetails: to.Ptr("Timeout text authored in Solution article "), - // }, - // { - // Insights: []*armselfhelp.Insight{ - // }, - // ReplacementKey: to.Ptr(""), - // RequiredParameters: []*string{ - // to.Ptr("parameter1"), - // to.Ptr("parameter2")}, - // SolutionID: to.Ptr("sampleSolutionId4"), - // Status: to.Ptr(armselfhelp.StatusFailed), - // StatusDetails: to.Ptr("Sample status details"), - // }}, - // MetricsBasedCharts: []*armselfhelp.MetricsBasedChart{ - // { - // Name: to.Ptr("CPU_percent"), - // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), - // ReplacementKey: to.Ptr(""), - // TimeSpanDuration: to.Ptr("1d"), - // Title: to.Ptr("CPU Usage in the last one day"), - // }, - // { - // Name: to.Ptr("memory_percent"), - // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), - // ReplacementKey: to.Ptr(""), - // TimeSpanDuration: to.Ptr("1d"), - // Title: to.Ptr("Memory Usage in the last one day"), - // }, - // { - // Name: to.Ptr("io_consumption_percent"), - // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), - // ReplacementKey: to.Ptr(""), - // TimeSpanDuration: to.Ptr("1d"), - // Title: to.Ptr("IOPS Usage in the last one day"), - // }, - // { - // Name: to.Ptr("active_connections"), - // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), - // ReplacementKey: to.Ptr(""), - // TimeSpanDuration: to.Ptr("1d"), - // Title: to.Ptr("Active Connections in the last one day"), - // }}, - // VideoGroups: []*armselfhelp.VideoGroup{ - // { - // ReplacementKey: to.Ptr(""), - // Videos: []*armselfhelp.VideoGroupVideo{ - // { - // Src: to.Ptr("sampleLink"), - // Title: to.Ptr("widthtest"), - // }}, - // }}, - // Videos: []*armselfhelp.Video{ + // TimeSpanDuration: to.Ptr("1d"), + // Title: to.Ptr("Memory Usage in the last one day"), + // }}, + // VideoGroups: []*armselfhelp.VideoGroup{ + // { + // ReplacementKey: to.Ptr(""), + // Videos: []*armselfhelp.VideoGroupVideo{ // { // Src: to.Ptr("sampleLink"), - // Title: to.Ptr("CI - CD with Azure DevOps"), - // ReplacementKey: to.Ptr(""), + // Title: to.Ptr("widthtest"), // }}, - // WebResults: []*armselfhelp.WebResult{ + // }}, + // Videos: []*armselfhelp.Video{ + // { + // Src: to.Ptr("sampleLink"), + // Title: to.Ptr("CI - CD with Azure DevOps"), + // ReplacementKey: to.Ptr(""), + // }}, + // WebResults: []*armselfhelp.WebResult{ + // { + // ReplacementKey: to.Ptr(""), + // SearchResults: []*armselfhelp.SearchResult{ // { - // ReplacementKey: to.Ptr(""), - // SearchResults: []*armselfhelp.SearchResult{ - // { - // Confidence: to.Ptr(armselfhelp.ConfidenceHigh), - // Content: to.Ptr("I sysprep a VM and now I cannot connect to it via RDP"), - // Link: to.Ptr("sampleLink"), - // Rank: to.Ptr[int32](1), - // ResultType: to.Ptr(armselfhelp.ResultTypeCommunity), - // SolutionID: to.Ptr("sampleSolutionId"), - // Source: to.Ptr("sampleSource"), - // Title: to.Ptr("Cannot RDP VM after SysPrep"), - // }}, + // Confidence: to.Ptr(armselfhelp.ConfidenceHigh), + // Content: to.Ptr("I sysprep a VM and now I cannot connect to it via RDP"), + // Link: to.Ptr("sampleLink"), + // Rank: to.Ptr[int32](1), + // ResultType: to.Ptr(armselfhelp.ResultTypeCommunity), + // SolutionID: to.Ptr("sampleSolutionId"), + // Source: to.Ptr("sampleSource"), + // Title: to.Ptr("Cannot RDP VM after SysPrep"), // }}, + // }}, + // }, + // Sections: []*armselfhelp.Section{ + // { + // Content: to.Ptr("

sample content

"), + // ReplacementMaps: &armselfhelp.ReplacementMaps{ // }, - // Sections: []*armselfhelp.Section{ - // { - // Content: to.Ptr("

sample content

"), - // ReplacementMaps: &armselfhelp.ReplacementMaps{ - // }, - // Title: to.Ptr("RBAC Authentication Common Solutions"), - // }}, - // SolutionID: to.Ptr("sampleSolutionId"), // Title: to.Ptr("RBAC Authentication Common Solutions"), - // }, - // } + // }}, + // SolutionID: to.Ptr("sampleSolutionId"), + // Title: to.Ptr("RBAC Authentication Common Solutions"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Solution_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Solution_Get.json func ExampleSolutionClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -229,103 +190,67 @@ func ExampleSolutionClient_Get() { // SolutionID: to.Ptr("sampleSolutionId4"), // Status: to.Ptr(armselfhelp.StatusSucceeded), // StatusDetails: to.Ptr(""), + // }}, + // MetricsBasedCharts: []*armselfhelp.MetricsBasedChart{ + // { + // Name: to.Ptr("CPU_percent"), + // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), + // ReplacementKey: to.Ptr(""), + // TimeSpanDuration: to.Ptr("1d"), + // Title: to.Ptr("CPU Usage in the last one day"), // }, // { - // Insights: []*armselfhelp.Insight{ - // }, + // Name: to.Ptr("memory_percent"), + // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), // ReplacementKey: to.Ptr(""), - // RequiredParameters: []*string{ - // to.Ptr("parameter1"), - // to.Ptr("parameter2")}, - // SolutionID: to.Ptr("sampleSolutionId5"), - // Status: to.Ptr(armselfhelp.StatusFailed), - // StatusDetails: to.Ptr("Timeout text authored in Solution article "), - // }, - // { - // Insights: []*armselfhelp.Insight{ - // }, - // ReplacementKey: to.Ptr(""), - // RequiredParameters: []*string{ - // to.Ptr("parameter1"), - // to.Ptr("parameter2")}, - // SolutionID: to.Ptr("sampleSolutionId6"), - // Status: to.Ptr(armselfhelp.StatusFailed), - // StatusDetails: to.Ptr("Some text "), - // }}, - // MetricsBasedCharts: []*armselfhelp.MetricsBasedChart{ - // { - // Name: to.Ptr("CPU_percent"), - // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), - // ReplacementKey: to.Ptr(""), - // TimeSpanDuration: to.Ptr("1d"), - // Title: to.Ptr("CPU Usage in the last one day"), - // }, - // { - // Name: to.Ptr("memory_percent"), - // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), - // ReplacementKey: to.Ptr(""), - // TimeSpanDuration: to.Ptr("1d"), - // Title: to.Ptr("Memory Usage in the last one day"), - // }, - // { - // Name: to.Ptr("io_consumption_percent"), - // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), - // ReplacementKey: to.Ptr(""), - // TimeSpanDuration: to.Ptr("1d"), - // Title: to.Ptr("IOPS Usage in the last one day"), - // }, - // { - // Name: to.Ptr("active_connections"), - // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), - // ReplacementKey: to.Ptr(""), - // TimeSpanDuration: to.Ptr("1d"), - // Title: to.Ptr("Active Connections in the last one day"), - // }}, - // VideoGroups: []*armselfhelp.VideoGroup{ - // { - // ReplacementKey: to.Ptr(""), - // Videos: []*armselfhelp.VideoGroupVideo{ - // { - // Src: to.Ptr("sampleVideoSource2"), - // Title: to.Ptr("widthtest"), - // }}, - // }}, - // Videos: []*armselfhelp.Video{ + // TimeSpanDuration: to.Ptr("1d"), + // Title: to.Ptr("Memory Usage in the last one day"), + // }}, + // VideoGroups: []*armselfhelp.VideoGroup{ + // { + // ReplacementKey: to.Ptr(""), + // Videos: []*armselfhelp.VideoGroupVideo{ // { - // Src: to.Ptr("sampleVideoSource"), - // Title: to.Ptr("CI - CD with Azure DevOps"), - // ReplacementKey: to.Ptr(""), + // Src: to.Ptr("sampleVideoSource2"), + // Title: to.Ptr("widthtest"), // }}, - // WebResults: []*armselfhelp.WebResult{ + // }}, + // Videos: []*armselfhelp.Video{ + // { + // Src: to.Ptr("sampleVideoSource"), + // Title: to.Ptr("CI - CD with Azure DevOps"), + // ReplacementKey: to.Ptr(""), + // }}, + // WebResults: []*armselfhelp.WebResult{ + // { + // ReplacementKey: to.Ptr(""), + // SearchResults: []*armselfhelp.SearchResult{ // { - // ReplacementKey: to.Ptr(""), - // SearchResults: []*armselfhelp.SearchResult{ - // { - // Confidence: to.Ptr(armselfhelp.ConfidenceHigh), - // Content: to.Ptr("I sysprep a VM and now I cannot connect to it via RDP"), - // Link: to.Ptr("sampleLink"), - // Rank: to.Ptr[int32](1), - // ResultType: to.Ptr(armselfhelp.ResultTypeCommunity), - // SolutionID: to.Ptr("sampleSolutionId2"), - // Source: to.Ptr("sampleSource"), - // Title: to.Ptr("Cannot RDP VM after SysPrep"), - // }}, + // Confidence: to.Ptr(armselfhelp.ConfidenceHigh), + // Content: to.Ptr("I sysprep a VM and now I cannot connect to it via RDP"), + // Link: to.Ptr("sampleLink"), + // Rank: to.Ptr[int32](1), + // ResultType: to.Ptr(armselfhelp.ResultTypeCommunity), + // SolutionID: to.Ptr("sampleSolutionId2"), + // Source: to.Ptr("sampleSource"), + // Title: to.Ptr("Cannot RDP VM after SysPrep"), // }}, + // }}, + // }, + // Sections: []*armselfhelp.Section{ + // { + // Content: to.Ptr("

sample content

"), + // ReplacementMaps: &armselfhelp.ReplacementMaps{ // }, - // Sections: []*armselfhelp.Section{ - // { - // Content: to.Ptr("

sample content

"), - // ReplacementMaps: &armselfhelp.ReplacementMaps{ - // }, - // Title: to.Ptr("RBAC Authentication Common Solutions"), - // }}, - // SolutionID: to.Ptr("sampleSolutionId1"), // Title: to.Ptr("RBAC Authentication Common Solutions"), - // }, - // } + // }}, + // SolutionID: to.Ptr("sampleSolutionId1"), + // Title: to.Ptr("RBAC Authentication Common Solutions"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Solution_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Solution_Update.json func ExampleSolutionClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -336,7 +261,15 @@ func ExampleSolutionClient_BeginUpdate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := clientFactory.NewSolutionClient().BeginUpdate(ctx, "subscriptions/mySubscription/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-rp", "SolutionResourceName1", armselfhelp.SolutionPatchRequestBody{}, nil) + poller, err := clientFactory.NewSolutionClient().BeginUpdate(ctx, "subscriptions/mySubscription/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-rp", "SolutionResourceName1", armselfhelp.SolutionPatchRequestBody{ + Properties: &armselfhelp.SolutionResourceProperties{ + TriggerCriteria: []*armselfhelp.TriggerCriterion{ + { + Name: to.Ptr(armselfhelp.NameReplacementKey), + Value: to.Ptr(""), + }}, + }, + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -379,98 +312,62 @@ func ExampleSolutionClient_BeginUpdate() { // SolutionID: to.Ptr("sampleSolutionId2"), // Status: to.Ptr(armselfhelp.StatusFailed), // StatusDetails: to.Ptr(""), + // }}, + // MetricsBasedCharts: []*armselfhelp.MetricsBasedChart{ + // { + // Name: to.Ptr("CPU_percent"), + // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), + // ReplacementKey: to.Ptr(""), + // TimeSpanDuration: to.Ptr("1d"), + // Title: to.Ptr("CPU Usage in the last one day"), // }, // { - // Insights: []*armselfhelp.Insight{ - // }, + // Name: to.Ptr("memory_percent"), + // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), // ReplacementKey: to.Ptr(""), - // RequiredParameters: []*string{ - // to.Ptr("parameter1"), - // to.Ptr("parameter2")}, - // SolutionID: to.Ptr("sampleSolutionId3"), - // Status: to.Ptr(armselfhelp.StatusFailed), - // StatusDetails: to.Ptr("Timeout text authored in Solution article "), - // }, - // { - // Insights: []*armselfhelp.Insight{ - // }, - // ReplacementKey: to.Ptr(""), - // RequiredParameters: []*string{ - // to.Ptr("parameter1"), - // to.Ptr("parameter2")}, - // SolutionID: to.Ptr("sampleSolutionId4"), - // Status: to.Ptr(armselfhelp.StatusFailed), - // StatusDetails: to.Ptr("Sample status details"), - // }}, - // MetricsBasedCharts: []*armselfhelp.MetricsBasedChart{ - // { - // Name: to.Ptr("CPU_percent"), - // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), - // ReplacementKey: to.Ptr(""), - // TimeSpanDuration: to.Ptr("1d"), - // Title: to.Ptr("CPU Usage in the last one day"), - // }, - // { - // Name: to.Ptr("memory_percent"), - // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), - // ReplacementKey: to.Ptr(""), - // TimeSpanDuration: to.Ptr("1d"), - // Title: to.Ptr("Memory Usage in the last one day"), - // }, - // { - // Name: to.Ptr("io_consumption_percent"), - // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), - // ReplacementKey: to.Ptr(""), - // TimeSpanDuration: to.Ptr("1d"), - // Title: to.Ptr("IOPS Usage in the last one day"), - // }, - // { - // Name: to.Ptr("active_connections"), - // AggregationType: to.Ptr(armselfhelp.AggregationTypeMax), - // ReplacementKey: to.Ptr(""), - // TimeSpanDuration: to.Ptr("1d"), - // Title: to.Ptr("Active Connections in the last one day"), - // }}, - // VideoGroups: []*armselfhelp.VideoGroup{ - // { - // ReplacementKey: to.Ptr(""), - // Videos: []*armselfhelp.VideoGroupVideo{ - // { - // Src: to.Ptr("sampleLink"), - // Title: to.Ptr("widthtest"), - // }}, - // }}, - // Videos: []*armselfhelp.Video{ + // TimeSpanDuration: to.Ptr("1d"), + // Title: to.Ptr("Memory Usage in the last one day"), + // }}, + // VideoGroups: []*armselfhelp.VideoGroup{ + // { + // ReplacementKey: to.Ptr(""), + // Videos: []*armselfhelp.VideoGroupVideo{ // { // Src: to.Ptr("sampleLink"), - // Title: to.Ptr("CI - CD with Azure DevOps"), - // ReplacementKey: to.Ptr(""), + // Title: to.Ptr("widthtest"), // }}, - // WebResults: []*armselfhelp.WebResult{ + // }}, + // Videos: []*armselfhelp.Video{ + // { + // Src: to.Ptr("sampleLink"), + // Title: to.Ptr("CI - CD with Azure DevOps"), + // ReplacementKey: to.Ptr(""), + // }}, + // WebResults: []*armselfhelp.WebResult{ + // { + // ReplacementKey: to.Ptr(""), + // SearchResults: []*armselfhelp.SearchResult{ // { - // ReplacementKey: to.Ptr(""), - // SearchResults: []*armselfhelp.SearchResult{ - // { - // Confidence: to.Ptr(armselfhelp.ConfidenceHigh), - // Content: to.Ptr("I sysprep a VM and now I cannot connect to it via RDP"), - // Link: to.Ptr("sampleLink"), - // Rank: to.Ptr[int32](1), - // ResultType: to.Ptr(armselfhelp.ResultTypeCommunity), - // SolutionID: to.Ptr("sampleSolutionId"), - // Source: to.Ptr("sampleSource"), - // Title: to.Ptr("Cannot RDP VM after SysPrep"), - // }}, + // Confidence: to.Ptr(armselfhelp.ConfidenceHigh), + // Content: to.Ptr("I sysprep a VM and now I cannot connect to it via RDP"), + // Link: to.Ptr("sampleLink"), + // Rank: to.Ptr[int32](1), + // ResultType: to.Ptr(armselfhelp.ResultTypeCommunity), + // SolutionID: to.Ptr("sampleSolutionId"), + // Source: to.Ptr("sampleSource"), + // Title: to.Ptr("Cannot RDP VM after SysPrep"), // }}, + // }}, + // }, + // Sections: []*armselfhelp.Section{ + // { + // Content: to.Ptr("

sample content

"), + // ReplacementMaps: &armselfhelp.ReplacementMaps{ // }, - // Sections: []*armselfhelp.Section{ - // { - // Content: to.Ptr("

sample content

"), - // ReplacementMaps: &armselfhelp.ReplacementMaps{ - // }, - // Title: to.Ptr("RBAC Authentication Common Solutions"), - // }}, - // SolutionID: to.Ptr("sampleSolutionId"), // Title: to.Ptr("RBAC Authentication Common Solutions"), - // }, - // } + // }}, + // SolutionID: to.Ptr("sampleSolutionId"), + // Title: to.Ptr("RBAC Authentication Common Solutions"), + // }, + // } } diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/troubleshooters_client.go b/sdk/resourcemanager/selfhelp/armselfhelp/troubleshooters_client.go index 5c033026e212..1be226032803 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/troubleshooters_client.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/troubleshooters_client.go @@ -47,7 +47,8 @@ func NewTroubleshootersClient(credential azcore.TokenCredential, options *arm.Cl // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 2023-09-01-preview -// - scope - This is an extension resource provider and only resource level extension is supported at the moment. +// - scope - scope = resourceUri of affected resource. +// For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read // - troubleshooterName - Troubleshooter resource Name. // - options - TroubleshootersClientContinueOptions contains the optional parameters for the TroubleshootersClient.Continue // method. @@ -108,18 +109,18 @@ func (client *TroubleshootersClient) continueHandleResponse(resp *http.Response) } // Create - Creates the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ -// as the trigger. Troubleshooters are step-by-step interactive guidance -// that scope the problem by collecting additional inputs from you in each stage while troubleshooting an Azure issue. You -// will be guided down decision tree style workflow and the best possible solution -// will be presented at the end of the workflow. Create API creates the Troubleshooter API using ‘parameters’ and ‘solutionId’ -// After creating the Troubleshooter instance, the following APIs can be used: -// CONTINUE API: to move to the next step in the flow GET API: to identify the next step after executing the CONTINUE API. -// Note: ‘requiredParameters’ from solutions response must be passed via ‘properties. parameters’ in the request body of Troubleshooters -// API. +// as the trigger. Azure Troubleshooters help with hard to classify issues, +// reducing the gap between customer observed problems and solutions by guiding the user effortlessly through the troubleshooting +// process. Each Troubleshooter flow represents a problem area within Azure +// and has a complex tree-like structure that addresses many root causes. These flows are prepared with the help of Subject +// Matter experts and customer support engineers by carefully considering previous +// support requests raised by customers. Troubleshooters terminate at a well curated solution based off of resource backend +// signals and customer manual selections. // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 2023-09-01-preview -// - scope - This is an extension resource provider and only resource level extension is supported at the moment. +// - scope - scope = resourceUri of affected resource. +// For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read // - troubleshooterName - Troubleshooter resource Name. // - createTroubleshooterRequestBody - The required request body for this Troubleshooter resource creation. // - options - TroubleshootersClientCreateOptions contains the optional parameters for the TroubleshootersClient.Create method. @@ -180,7 +181,8 @@ func (client *TroubleshootersClient) createHandleResponse(resp *http.Response) ( // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 2023-09-01-preview -// - scope - This is an extension resource provider and only resource level extension is supported at the moment. +// - scope - scope = resourceUri of affected resource. +// For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read // - troubleshooterName - Troubleshooter resource Name. // - options - TroubleshootersClientEndOptions contains the optional parameters for the TroubleshootersClient.End method. func (client *TroubleshootersClient) End(ctx context.Context, scope string, troubleshooterName string, options *TroubleshootersClientEndOptions) (TroubleshootersClientEndResponse, error) { @@ -240,7 +242,8 @@ func (client *TroubleshootersClient) endHandleResponse(resp *http.Response) (Tro // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 2023-09-01-preview -// - scope - This is an extension resource provider and only resource level extension is supported at the moment. +// - scope - scope = resourceUri of affected resource. +// For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read // - troubleshooterName - Troubleshooter resource Name. // - options - TroubleshootersClientGetOptions contains the optional parameters for the TroubleshootersClient.Get method. func (client *TroubleshootersClient) Get(ctx context.Context, scope string, troubleshooterName string, options *TroubleshootersClientGetOptions) (TroubleshootersClientGetResponse, error) { @@ -299,7 +302,8 @@ func (client *TroubleshootersClient) getHandleResponse(resp *http.Response) (Tro // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 2023-09-01-preview -// - scope - This is an extension resource provider and only resource level extension is supported at the moment. +// - scope - scope = resourceUri of affected resource. +// For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read // - troubleshooterName - Troubleshooter resource Name. // - options - TroubleshootersClientRestartOptions contains the optional parameters for the TroubleshootersClient.Restart method. func (client *TroubleshootersClient) Restart(ctx context.Context, scope string, troubleshooterName string, options *TroubleshootersClientRestartOptions) (TroubleshootersClientRestartResponse, error) { diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/troubleshooters_client_example_test.go b/sdk/resourcemanager/selfhelp/armselfhelp/troubleshooters_client_example_test.go index f6648dd15cdd..a05b7a7ca108 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/troubleshooters_client_example_test.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/troubleshooters_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhelp/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Troubleshooter_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Troubleshooter_Create.json func ExampleTroubleshootersClient_Create() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -66,7 +66,7 @@ func ExampleTroubleshootersClient_Create() { // QuestionContent: to.Ptr("Is VPN Connected?"), // QuestionContentType: to.Ptr(armselfhelp.QuestionContentTypeText), // QuestionID: to.Ptr("6cbe3f23-f3c2-41f3-886e-0cfbeee19b24"), - // QuestionType: to.Ptr("MultiChoice"), + // QuestionType: to.Ptr(armselfhelp.QuestionType("MultiChoice")), // ResponseOptions: []*armselfhelp.ResponseOption{ // { // Key: to.Ptr("Yes"), @@ -88,7 +88,7 @@ func ExampleTroubleshootersClient_Create() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Troubleshooter_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Troubleshooter_Get.json func ExampleTroubleshootersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -126,7 +126,7 @@ func ExampleTroubleshootersClient_Get() { // QuestionContent: to.Ptr("Is VPN Connected?"), // QuestionContentType: to.Ptr(armselfhelp.QuestionContentTypeText), // QuestionID: to.Ptr("SampleQuestionId"), - // QuestionType: to.Ptr("MultiChoice"), + // QuestionType: to.Ptr(armselfhelp.QuestionType("MultiChoice")), // ResponseOptions: []*armselfhelp.ResponseOption{ // { // Key: to.Ptr("Yes"), @@ -148,7 +148,7 @@ func ExampleTroubleshootersClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Troubleshooter_Continue.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Troubleshooter_Continue.json func ExampleTroubleshootersClient_Continue() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -174,7 +174,7 @@ func ExampleTroubleshootersClient_Continue() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Troubleshooter_End.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Troubleshooter_End.json func ExampleTroubleshootersClient_End() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -191,7 +191,7 @@ func ExampleTroubleshootersClient_End() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Troubleshooter_Restart.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/help/resource-manager/Microsoft.Help/preview/2023-09-01-preview/examples/Troubleshooter_Restart.json func ExampleTroubleshootersClient_Restart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil {