diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/CHANGELOG.md b/sdk/resourcemanager/selfhelp/armselfhelp/CHANGELOG.md index c911fac2b588..87fca5464d5b 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/CHANGELOG.md +++ b/sdk/resourcemanager/selfhelp/armselfhelp/CHANGELOG.md @@ -1,5 +1,10 @@ # Release History +## 1.0.0 (2023-06-23) +### Other Changes + +- Release stable version. + ## 0.1.0 (2023-04-28) The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhelp` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html). diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/assets.json b/sdk/resourcemanager/selfhelp/armselfhelp/assets.json index 34da9157489c..86aa53168db2 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/assets.json +++ b/sdk/resourcemanager/selfhelp/armselfhelp/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/selfhelp/armselfhelp", - "Tag": "go/resourcemanager/selfhelp/armselfhelp_7e7fa55edd" + "Tag": "go/resourcemanager/selfhelp/armselfhelp_d1005e0566" } diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/autorest.md b/sdk/resourcemanager/selfhelp/armselfhelp/autorest.md index 079ac149467b..05b09e0baa06 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/d938a209ffd813aafe13b1899f0a1328fe186c87/specification/help/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/d938a209ffd813aafe13b1899f0a1328fe186c87/specification/help/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/help/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/help/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.1.0 -tag: package-2023-01-01-preview +module-version: 1.0.0 +tag: package-2023-06-01 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/constants.go b/sdk/resourcemanager/selfhelp/armselfhelp/constants.go index 2536aa999084..c1e6d532c33d 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/constants.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/constants.go @@ -11,7 +11,7 @@ package armselfhelp const ( moduleName = "armselfhelp" - moduleVersion = "v0.1.0" + moduleVersion = "v1.0.0" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client.go b/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client.go index db078824b98d..9b5acea66663 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client.go @@ -44,7 +44,7 @@ func NewDiagnosticsClient(credential azcore.TokenCredential, options *arm.Client // CheckNameAvailability - This API is used to check the uniqueness of a resource name used for a diagnostic check. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01-preview +// Generated from API version 2023-06-01 // - scope - This is an extension resource provider and only resource level extension is supported at the moment. // - options - DiagnosticsClientCheckNameAvailabilityOptions contains the optional parameters for the DiagnosticsClient.CheckNameAvailability // method. @@ -72,7 +72,7 @@ func (client *DiagnosticsClient) checkNameAvailabilityCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01-preview") + reqQP.Set("api-version", "2023-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.CheckNameAvailabilityRequest != nil { @@ -97,7 +97,7 @@ func (client *DiagnosticsClient) checkNameAvailabilityHandleResponse(resp *http. // to Diagnostics API // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01-preview +// Generated from API version 2023-06-01 // - scope - This is an extension resource provider and only resource level extension is supported at the moment. // - diagnosticsResourceName - Unique resource name for insight resources // - diagnosticResourceRequest - The required request body for this insightResource invocation. @@ -123,7 +123,7 @@ func (client *DiagnosticsClient) BeginCreate(ctx context.Context, scope string, // to Diagnostics API // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01-preview +// Generated from API version 2023-06-01 func (client *DiagnosticsClient) create(ctx context.Context, scope string, diagnosticsResourceName string, diagnosticResourceRequest DiagnosticResource, options *DiagnosticsClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, scope, diagnosticsResourceName, diagnosticResourceRequest, options) if err != nil { @@ -133,7 +133,7 @@ func (client *DiagnosticsClient) create(ctx context.Context, scope string, diagn if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusCreated) { + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { return nil, runtime.NewResponseError(resp) } return resp, nil @@ -152,7 +152,7 @@ func (client *DiagnosticsClient) createCreateRequest(ctx context.Context, scope return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01-preview") + reqQP.Set("api-version", "2023-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, diagnosticResourceRequest) @@ -161,7 +161,7 @@ func (client *DiagnosticsClient) createCreateRequest(ctx context.Context, scope // Get - Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-01-01-preview +// Generated from API version 2023-06-01 // - scope - This is an extension resource provider and only resource level extension is supported at the moment. // - diagnosticsResourceName - Unique resource name for insight resources // - options - DiagnosticsClientGetOptions contains the optional parameters for the DiagnosticsClient.Get method. @@ -193,7 +193,7 @@ func (client *DiagnosticsClient) getCreateRequest(ctx context.Context, scope str return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01-preview") + reqQP.Set("api-version", "2023-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client_example_test.go b/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client_example_test.go index 517e83ce3359..f75a6602b932 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client_example_test.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/diagnostics_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhelp" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d938a209ffd813aafe13b1899f0a1328fe186c87/specification/help/resource-manager/Microsoft.Help/preview/2023-01-01-preview/examples/CheckNameAvailabilityForDiagnosticWhenNameIsAvailable.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/help/resource-manager/Microsoft.Help/stable/2023-06-01/examples/CheckNameAvailabilityForDiagnosticWhenNameIsAvailable.json func ExampleDiagnosticsClient_CheckNameAvailability_exampleWhenNameIsAvailableForADiagnosticResource() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -45,7 +45,7 @@ func ExampleDiagnosticsClient_CheckNameAvailability_exampleWhenNameIsAvailableFo // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d938a209ffd813aafe13b1899f0a1328fe186c87/specification/help/resource-manager/Microsoft.Help/preview/2023-01-01-preview/examples/CheckNameAvailabilityForDiagnosticWhenNameIsNotAvailable.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/help/resource-manager/Microsoft.Help/stable/2023-06-01/examples/CheckNameAvailabilityForDiagnosticWhenNameIsNotAvailable.json func ExampleDiagnosticsClient_CheckNameAvailability_exampleWhenNameIsNotAvailableForADiagnosticResource() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -74,7 +74,7 @@ func ExampleDiagnosticsClient_CheckNameAvailability_exampleWhenNameIsNotAvailabl // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d938a209ffd813aafe13b1899f0a1328fe186c87/specification/help/resource-manager/Microsoft.Help/preview/2023-01-01-preview/examples/CreateDiagnosticForKeyVaultResource.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/help/resource-manager/Microsoft.Help/stable/2023-06-01/examples/CreateDiagnosticForKeyVaultResource.json func ExampleDiagnosticsClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -89,13 +89,41 @@ func ExampleDiagnosticsClient_BeginCreate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - _, err = poller.PollUntilDone(ctx, nil) + res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.DiagnosticResource = armselfhelp.DiagnosticResource{ + // Name: to.Ptr("Microsoft.Help/diagnostics"), + // Type: to.Ptr("VMNotWorkingInsight"), + // ID: to.Ptr("subscriptions/mySubscription/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), + // }}, + // ProvisioningState: to.Ptr(armselfhelp.ProvisioningStateSucceeded), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d938a209ffd813aafe13b1899f0a1328fe186c87/specification/help/resource-manager/Microsoft.Help/preview/2023-01-01-preview/examples/GetDiagnosticForKeyVaultResource.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/help/resource-manager/Microsoft.Help/stable/2023-06-01/examples/GetDiagnosticForKeyVaultResource.json func ExampleDiagnosticsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client.go b/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client.go index c08148235c50..74a7957eba7a 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client.go @@ -47,7 +47,7 @@ func NewDiscoverySolutionClient(credential azcore.TokenCredential, options *arm. // Note: ‘requiredParameterSets’ from Solutions Discovery API response must be passed via ‘additionalParameters’ as an input // to Diagnostics API. // -// Generated from API version 2023-01-01-preview +// Generated from API version 2023-06-01 // - scope - This is an extension resource provider and only resource level extension is supported at the moment. // - options - DiscoverySolutionClientListOptions contains the optional parameters for the DiscoverySolutionClient.NewListPager // method. @@ -88,7 +88,7 @@ func (client *DiscoverySolutionClient) listCreateRequest(ctx context.Context, sc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01-preview") + reqQP.Set("api-version", "2023-06-01") if options != nil && options.Skiptoken != nil { reqQP.Set("$skiptoken", *options.Skiptoken) } diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client_example_test.go b/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client_example_test.go index b591060c3be7..dc312f66a24f 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client_example_test.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/discoverysolution_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhelp" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d938a209ffd813aafe13b1899f0a1328fe186c87/specification/help/resource-manager/Microsoft.Help/preview/2023-01-01-preview/examples/ListDiscoverySolutionsForKeyVaultResource.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/help/resource-manager/Microsoft.Help/stable/2023-06-01/examples/ListDiscoverySolutionsForKeyVaultResource.json func ExampleDiscoverySolutionClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/go.mod b/sdk/resourcemanager/selfhelp/armselfhelp/go.mod index 62b9f2188423..02c50be26ba2 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/go.mod +++ b/sdk/resourcemanager/selfhelp/armselfhelp/go.mod @@ -5,14 +5,13 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 github.com/stretchr/testify v1.7.0 - golang.org/x/net v0.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect @@ -22,6 +21,7 @@ require ( github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect golang.org/x/crypto v0.6.0 // indirect + golang.org/x/net v0.7.0 // indirect golang.org/x/sys v0.5.0 // indirect golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/models.go b/sdk/resourcemanager/selfhelp/armselfhelp/models.go index 3f369d55d4c6..6451ee511fba 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/models.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/models.go @@ -14,82 +14,82 @@ import "time" // CheckNameAvailabilityRequest - The check availability request body. type CheckNameAvailabilityRequest struct { // The name of the resource for which availability needs to be checked. - Name *string `json:"name,omitempty"` + Name *string // The resource type. - Type *string `json:"type,omitempty"` + Type *string } // CheckNameAvailabilityResponse - Response for whether the requested resource name is available or not. type CheckNameAvailabilityResponse struct { // Gets an error message explaining the 'reason' value with more details. This field is returned iif nameAvailable is false. - Message *string `json:"message,omitempty"` + Message *string // Returns true or false depending on the availability of the name - NameAvailable *bool `json:"nameAvailable,omitempty"` + NameAvailable *bool // Reason for why value is not available. This field is returned if nameAvailable is false. - Reason *string `json:"reason,omitempty"` + Reason *string } // Diagnostic - Properties returned with in an insight. type Diagnostic struct { // Error definition. - Error *Error `json:"error,omitempty"` + Error *Error // The problems (if any) detected by this insight. - Insights []*Insight `json:"insights,omitempty"` + Insights []*Insight // Solution Id - SolutionID *string `json:"solutionId,omitempty"` + SolutionID *string // Denotes the status of the diagnostic resource. - Status *Status `json:"status,omitempty"` + Status *Status } // DiagnosticInvocation - Solution Invocation with additional params needed for invocation. type DiagnosticInvocation struct { // Additional parameters required to invoke the solutionId. - AdditionalParameters map[string]*string `json:"additionalParameters,omitempty"` + AdditionalParameters map[string]*string // Solution Id to invoke. - SolutionID *string `json:"solutionId,omitempty"` + SolutionID *string } // DiagnosticResource - Diagnostic resource type DiagnosticResource struct { // Diagnostic Resource properties. - Properties *DiagnosticResourceProperties `json:"properties,omitempty"` + Properties *DiagnosticResourceProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // DiagnosticResourceProperties - Diagnostic resource properties. type DiagnosticResourceProperties struct { // Global parameters that can be passed to all solutionIds. - GlobalParameters map[string]*string `json:"globalParameters,omitempty"` + GlobalParameters map[string]*string // SolutionIds that are needed to be invoked. - Insights []*DiagnosticInvocation `json:"insights,omitempty"` + Insights []*DiagnosticInvocation // READ-ONLY; Diagnostic Request Accepted time. - AcceptedAt *string `json:"acceptedAt,omitempty" azure:"ro"` + AcceptedAt *string // READ-ONLY; Array of Diagnostics. - Diagnostics []*Diagnostic `json:"diagnostics,omitempty" azure:"ro"` + Diagnostics []*Diagnostic // READ-ONLY; Status of diagnostic provisioning. - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ProvisioningState } // DiagnosticsClientBeginCreateOptions contains the optional parameters for the DiagnosticsClient.BeginCreate method. @@ -113,10 +113,10 @@ type DiagnosticsClientGetOptions struct { // DiscoveryResponse - Discovery response. type DiscoveryResponse struct { // The link used to get the next page of solution metadata. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // The list of solution metadata. - Value []*SolutionMetadataResource `json:"value,omitempty"` + Value []*SolutionMetadataResource } // DiscoverySolutionClientListOptions contains the optional parameters for the DiscoverySolutionClient.NewListPager method. @@ -134,80 +134,80 @@ type DiscoverySolutionClientListOptions struct { // Error definition. type Error struct { // An array of additional nested error response info objects, as described by this contract. - Details []*Error `json:"details,omitempty"` + Details []*Error // READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code. - Code *string `json:"code,omitempty" azure:"ro"` + Code *string // READ-ONLY; Description of the error. - Message *string `json:"message,omitempty" azure:"ro"` + Message *string // READ-ONLY; Service specific error type which serves as additional context for the error herein. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // Insight - Detailed insights(s) obtained via the invocation of an insight diagnostic troubleshooter. type Insight struct { // Article id. - ID *string `json:"id,omitempty"` + ID *string // Importance level of the insight. - ImportanceLevel *ImportanceLevel `json:"importanceLevel,omitempty"` + ImportanceLevel *ImportanceLevel // Detailed result content. - Results *string `json:"results,omitempty"` + Results *string // This insight's title. - Title *string `json:"title,omitempty"` + Title *string } // Operation - Details of a REST API operation, returned from the Resource Provider Operations API type Operation struct { // Localized display information for this particular operation. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - ActionType *ActionType `json:"actionType,omitempty" azure:"ro"` + ActionType *ActionType // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane // operations. - IsDataAction *bool `json:"isDataAction,omitempty" azure:"ro"` + IsDataAction *bool // READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", // "Microsoft.Compute/virtualMachines/capture/action" - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default // value is "user,system" - Origin *Origin `json:"origin,omitempty" azure:"ro"` + Origin *Origin } // OperationDisplay - Localized display information for this particular operation. type OperationDisplay struct { // READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. - Description *string `json:"description,omitempty" azure:"ro"` + Description *string // READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual // Machine", "Restart Virtual Machine". - Operation *string `json:"operation,omitempty" azure:"ro"` + Operation *string // READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft // Compute". - Provider *string `json:"provider,omitempty" azure:"ro"` + Provider *string // READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job // Schedule Collections". - Resource *string `json:"resource,omitempty" azure:"ro"` + Resource *string } // OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to // get the next set of results. type OperationListResult struct { // READ-ONLY; URL to get the next set of operation list results (if there are any). - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; List of operations supported by the resource provider - Value []*Operation `json:"value,omitempty" azure:"ro"` + Value []*Operation } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -218,53 +218,53 @@ type OperationsClientListOptions struct { // SolutionMetadataProperties - Diagnostic solution metadata. type SolutionMetadataProperties struct { // A detailed description of solution. - Description *string `json:"description,omitempty"` + Description *string // Required parameters for invoking this particular solution. - RequiredParameterSets [][]*string `json:"requiredParameterSets,omitempty"` + RequiredParameterSets [][]*string // Solution Id. - SolutionID *string `json:"solutionId,omitempty"` + SolutionID *string // Solution Type. - SolutionType *string `json:"solutionType,omitempty"` + SolutionType *string } // SolutionMetadataResource - Solution Metadata resource type SolutionMetadataResource struct { // Solution metadata Resource properties. - Properties *SolutionMetadataProperties `json:"properties,omitempty"` + Properties *SolutionMetadataProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { // The timestamp of resource creation (UTC). - CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAt *time.Time // The identity that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` + CreatedBy *string // The type of identity that created the resource. - CreatedByType *CreatedByType `json:"createdByType,omitempty"` + CreatedByType *CreatedByType // The timestamp of resource last modification (UTC) - LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` + LastModifiedAt *time.Time // The identity that last modified the resource. - LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + LastModifiedBy *string // The type of identity that last modified the resource. - LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` + LastModifiedByType *CreatedByType } diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/operations_client.go b/sdk/resourcemanager/selfhelp/armselfhelp/operations_client.go index 95545a41bfcc..5ae16d84daa5 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/operations_client.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/operations_client.go @@ -40,7 +40,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - Returns list of operations. // -// Generated from API version 2023-01-01-preview +// Generated from API version 2023-06-01 // - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ @@ -78,7 +78,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-01-01-preview") + reqQP.Set("api-version", "2023-06-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/operations_client_example_test.go b/sdk/resourcemanager/selfhelp/armselfhelp/operations_client_example_test.go index 58f9a0a9f3c4..7a2ad0c62a2e 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" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d938a209ffd813aafe13b1899f0a1328fe186c87/specification/help/resource-manager/Microsoft.Help/preview/2023-01-01-preview/examples/ListOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/help/resource-manager/Microsoft.Help/stable/2023-06-01/examples/ListOperations.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil {