From 33382205b62a996262f1b88218e72bc649144d6d Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 1 Aug 2023 21:40:09 +0000 Subject: [PATCH] CodeGen from PR 25094 in Azure/azure-rest-api-specs Merge a7ccc58ec22242ddadf38e475260f0e2b9cff299 into 4cd95123fb961c68740565a1efcaa5e43bd35802 --- .../armresourceconnector/CHANGELOG.md | 10 + .../armresourceconnector/appliances_client.go | 105 +-- .../appliances_client_example_test.go | 611 ------------------ .../armresourceconnector/autorest.md | 7 +- .../armresourceconnector/client_factory.go | 3 +- .../armresourceconnector/constants.go | 25 +- .../armresourceconnector/go.mod | 20 +- .../armresourceconnector/go.sum | 38 +- .../armresourceconnector/models.go | 66 +- .../armresourceconnector/models_serde.go | 3 +- .../armresourceconnector/options.go | 72 +++ .../armresourceconnector/response_types.go | 13 +- .../armresourceconnector/time_rfc3339.go | 3 +- 13 files changed, 199 insertions(+), 777 deletions(-) delete mode 100644 sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client_example_test.go create mode 100644 sdk/resourcemanager/resourceconnector/armresourceconnector/options.go diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/CHANGELOG.md b/sdk/resourcemanager/resourceconnector/armresourceconnector/CHANGELOG.md index 25b5fcc33fcf..944b94639c12 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/CHANGELOG.md +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.0.0 (2023-08-01) +### Breaking Changes + +- `ProviderKubeVirt`, `ProviderOpenStack` from enum `Provider` has been removed + +### Features Added + +- New value `StatusETCDSnapshotFailed`, `StatusValidatingETCDHealth`, `StatusValidatingImageDownload`, `StatusValidatingImageUpload`, `StatusValidatingSFSConnectivity` added to enum type `Status` + + ## 0.4.0 (2023-04-28) ### Breaking Changes diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client.go index 25ed89d9dbaa..809d62c7f4f0 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client.go @@ -3,9 +3,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armresourceconnector @@ -59,9 +58,10 @@ func (client *AppliancesClient) BeginCreateOrUpdate(ctx context.Context, resourc if err != nil { return nil, err } - return runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[AppliancesClientCreateOrUpdateResponse]{ + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[AppliancesClientCreateOrUpdateResponse]{ FinalStateVia: runtime.FinalStateViaAzureAsyncOp, }) + return poller, err } else { return runtime.NewPollerFromResumeToken[AppliancesClientCreateOrUpdateResponse](options.ResumeToken, client.internal.Pipeline(), nil) } @@ -72,18 +72,20 @@ func (client *AppliancesClient) BeginCreateOrUpdate(ctx context.Context, resourc // // Generated from API version 2022-10-27 func (client *AppliancesClient) createOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, parameters Appliance, options *AppliancesClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, resourceName, parameters, options) if err != nil { return nil, err } - resp, err := client.internal.Pipeline().Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. @@ -109,7 +111,10 @@ func (client *AppliancesClient) createOrUpdateCreateRequest(ctx context.Context, reqQP.Set("api-version", "2022-10-27") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // BeginDelete - Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id. @@ -125,9 +130,10 @@ func (client *AppliancesClient) BeginDelete(ctx context.Context, resourceGroupNa if err != nil { return nil, err } - return runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[AppliancesClientDeleteResponse]{ + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[AppliancesClientDeleteResponse]{ FinalStateVia: runtime.FinalStateViaAzureAsyncOp, }) + return poller, err } else { return runtime.NewPollerFromResumeToken[AppliancesClientDeleteResponse](options.ResumeToken, client.internal.Pipeline(), nil) } @@ -138,18 +144,20 @@ func (client *AppliancesClient) BeginDelete(ctx context.Context, resourceGroupNa // // Generated from API version 2022-10-27 func (client *AppliancesClient) deleteOperation(ctx context.Context, resourceGroupName string, resourceName string, options *AppliancesClientBeginDeleteOptions) (*http.Response, error) { + var err error req, err := client.deleteCreateRequest(ctx, resourceGroupName, resourceName, options) if err != nil { return nil, err } - resp, err := client.internal.Pipeline().Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err } - return resp, nil + return httpResp, nil } // deleteCreateRequest creates the Delete request. @@ -186,18 +194,21 @@ func (client *AppliancesClient) deleteCreateRequest(ctx context.Context, resourc // - resourceName - Appliances name. // - options - AppliancesClientGetOptions contains the optional parameters for the AppliancesClient.Get method. func (client *AppliancesClient) Get(ctx context.Context, resourceGroupName string, resourceName string, options *AppliancesClientGetOptions) (AppliancesClientGetResponse, error) { + var err error req, err := client.getCreateRequest(ctx, resourceGroupName, resourceName, options) if err != nil { return AppliancesClientGetResponse{}, err } - resp, err := client.internal.Pipeline().Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return AppliancesClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return AppliancesClientGetResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return AppliancesClientGetResponse{}, err } - return client.getHandleResponse(resp) + resp, err := client.getHandleResponse(httpResp) + return resp, err } // getCreateRequest creates the Get request. @@ -242,18 +253,21 @@ func (client *AppliancesClient) getHandleResponse(resp *http.Response) (Applianc // - options - AppliancesClientGetTelemetryConfigOptions contains the optional parameters for the AppliancesClient.GetTelemetryConfig // method. func (client *AppliancesClient) GetTelemetryConfig(ctx context.Context, options *AppliancesClientGetTelemetryConfigOptions) (AppliancesClientGetTelemetryConfigResponse, error) { + var err error req, err := client.getTelemetryConfigCreateRequest(ctx, options) if err != nil { return AppliancesClientGetTelemetryConfigResponse{}, err } - resp, err := client.internal.Pipeline().Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return AppliancesClientGetTelemetryConfigResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return AppliancesClientGetTelemetryConfigResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return AppliancesClientGetTelemetryConfigResponse{}, err } - return client.getTelemetryConfigHandleResponse(resp) + resp, err := client.getTelemetryConfigHandleResponse(httpResp) + return resp, err } // getTelemetryConfigCreateRequest creates the GetTelemetryConfig request. @@ -294,18 +308,21 @@ func (client *AppliancesClient) getTelemetryConfigHandleResponse(resp *http.Resp // - options - AppliancesClientGetUpgradeGraphOptions contains the optional parameters for the AppliancesClient.GetUpgradeGraph // method. func (client *AppliancesClient) GetUpgradeGraph(ctx context.Context, resourceGroupName string, resourceName string, upgradeGraph string, options *AppliancesClientGetUpgradeGraphOptions) (AppliancesClientGetUpgradeGraphResponse, error) { + var err error req, err := client.getUpgradeGraphCreateRequest(ctx, resourceGroupName, resourceName, upgradeGraph, options) if err != nil { return AppliancesClientGetUpgradeGraphResponse{}, err } - resp, err := client.internal.Pipeline().Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return AppliancesClientGetUpgradeGraphResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return AppliancesClientGetUpgradeGraphResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return AppliancesClientGetUpgradeGraphResponse{}, err } - return client.getUpgradeGraphHandleResponse(resp) + resp, err := client.getUpgradeGraphHandleResponse(httpResp) + return resp, err } // getUpgradeGraphCreateRequest creates the GetUpgradeGraph request. @@ -483,18 +500,21 @@ func (client *AppliancesClient) listBySubscriptionHandleResponse(resp *http.Resp // - options - AppliancesClientListClusterUserCredentialOptions contains the optional parameters for the AppliancesClient.ListClusterUserCredential // method. func (client *AppliancesClient) ListClusterUserCredential(ctx context.Context, resourceGroupName string, resourceName string, options *AppliancesClientListClusterUserCredentialOptions) (AppliancesClientListClusterUserCredentialResponse, error) { + var err error req, err := client.listClusterUserCredentialCreateRequest(ctx, resourceGroupName, resourceName, options) if err != nil { return AppliancesClientListClusterUserCredentialResponse{}, err } - resp, err := client.internal.Pipeline().Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return AppliancesClientListClusterUserCredentialResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return AppliancesClientListClusterUserCredentialResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return AppliancesClientListClusterUserCredentialResponse{}, err } - return client.listClusterUserCredentialHandleResponse(resp) + resp, err := client.listClusterUserCredentialHandleResponse(httpResp) + return resp, err } // listClusterUserCredentialCreateRequest creates the ListClusterUserCredential request. @@ -540,18 +560,21 @@ func (client *AppliancesClient) listClusterUserCredentialHandleResponse(resp *ht // - resourceName - Appliances name. // - options - AppliancesClientListKeysOptions contains the optional parameters for the AppliancesClient.ListKeys method. func (client *AppliancesClient) ListKeys(ctx context.Context, resourceGroupName string, resourceName string, options *AppliancesClientListKeysOptions) (AppliancesClientListKeysResponse, error) { + var err error req, err := client.listKeysCreateRequest(ctx, resourceGroupName, resourceName, options) if err != nil { return AppliancesClientListKeysResponse{}, err } - resp, err := client.internal.Pipeline().Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return AppliancesClientListKeysResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return AppliancesClientListKeysResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return AppliancesClientListKeysResponse{}, err } - return client.listKeysHandleResponse(resp) + resp, err := client.listKeysHandleResponse(httpResp) + return resp, err } // listKeysCreateRequest creates the ListKeys request. @@ -654,18 +677,21 @@ func (client *AppliancesClient) listOperationsHandleResponse(resp *http.Response // - parameters - The updatable fields of an existing Appliance. // - options - AppliancesClientUpdateOptions contains the optional parameters for the AppliancesClient.Update method. func (client *AppliancesClient) Update(ctx context.Context, resourceGroupName string, resourceName string, parameters PatchableAppliance, options *AppliancesClientUpdateOptions) (AppliancesClientUpdateResponse, error) { + var err error req, err := client.updateCreateRequest(ctx, resourceGroupName, resourceName, parameters, options) if err != nil { return AppliancesClientUpdateResponse{}, err } - resp, err := client.internal.Pipeline().Do(req) + httpResp, err := client.internal.Pipeline().Do(req) if err != nil { return AppliancesClientUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return AppliancesClientUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return AppliancesClientUpdateResponse{}, err } - return client.updateHandleResponse(resp) + resp, err := client.updateHandleResponse(httpResp) + return resp, err } // updateCreateRequest creates the Update request. @@ -691,7 +717,10 @@ func (client *AppliancesClient) updateCreateRequest(ctx context.Context, resourc reqQP.Set("api-version", "2022-10-27") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil } // updateHandleResponse handles the Update response. diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client_example_test.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client_example_test.go deleted file mode 100644 index cc09f5e9a458..000000000000 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client_example_test.go +++ /dev/null @@ -1,611 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armresourceconnector_test - -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/resourceconnector/armresourceconnector" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListOperations.json -func ExampleAppliancesClient_NewListOperationsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armresourceconnector.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewAppliancesClient().NewListOperationsPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ApplianceOperationsList = armresourceconnector.ApplianceOperationsList{ - // Value: []*armresourceconnector.ApplianceOperation{ - // { - // Name: to.Ptr("Microsoft.ResourceConnector/operations/read"), - // Display: &armresourceconnector.ApplianceOperationValueDisplay{ - // Description: to.Ptr("Gets list of Available Operations for Appliances"), - // Operation: to.Ptr("List Available Operations for Appliances"), - // Provider: to.Ptr("Microsoft ResourceConnector"), - // Resource: to.Ptr("Operations"), - // }, - // IsDataAction: to.Ptr(false), - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.ResourceConnector/register/action"), - // Display: &armresourceconnector.ApplianceOperationValueDisplay{ - // Description: to.Ptr("Registers the subscription for Appliance resource provider and enables the creation of Appliance."), - // Operation: to.Ptr("Registers the Appliance Resource Provider"), - // Provider: to.Ptr("Microsoft ResourceConnector"), - // Resource: to.Ptr("Appliances Resource Provider"), - // }, - // IsDataAction: to.Ptr(false), - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.ResourceConnector/appliances/read"), - // Display: &armresourceconnector.ApplianceOperationValueDisplay{ - // Description: to.Ptr("Gets an Appliance resource"), - // Operation: to.Ptr("Get Appliance"), - // Provider: to.Ptr("Microsoft ResourceConnector"), - // Resource: to.Ptr("Appliances"), - // }, - // IsDataAction: to.Ptr(false), - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.ResourceConnector/appliances/write"), - // Display: &armresourceconnector.ApplianceOperationValueDisplay{ - // Description: to.Ptr("Creates or Updates Appliance resource"), - // Operation: to.Ptr("Create or Update Appliance"), - // Provider: to.Ptr("Microsoft ResourceConnector"), - // Resource: to.Ptr("Appliances"), - // }, - // IsDataAction: to.Ptr(false), - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.ResourceConnector/appliances/delete"), - // Display: &armresourceconnector.ApplianceOperationValueDisplay{ - // Description: to.Ptr("Deletes Appliance resource"), - // Operation: to.Ptr("Delete Appliance"), - // Provider: to.Ptr("Microsoft ResourceConnector"), - // Resource: to.Ptr("Appliances"), - // }, - // IsDataAction: to.Ptr(false), - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.ResourceConnector/appliances/listClusterUserCredential"), - // Display: &armresourceconnector.ApplianceOperationValueDisplay{ - // Description: to.Ptr("Get an appliance cluster user credential"), - // Operation: to.Ptr("List User Cluster Credential"), - // Provider: to.Ptr("Microsoft ResourceConnector"), - // Resource: to.Ptr("Appliances"), - // }, - // IsDataAction: to.Ptr(false), - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.ResourceConnector/locations/operationsstatus/read"), - // Display: &armresourceconnector.ApplianceOperationValueDisplay{ - // Description: to.Ptr("Get result of Appliance operation"), - // Operation: to.Ptr("Get status of Appliance operation"), - // Provider: to.Ptr("Microsoft ResourceConnector"), - // Resource: to.Ptr("Appliance Operation Status"), - // }, - // IsDataAction: to.Ptr(false), - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.ResourceConnector/locations/operationresults/read"), - // Display: &armresourceconnector.ApplianceOperationValueDisplay{ - // Description: to.Ptr("Get result of Appliance operation"), - // Operation: to.Ptr("Get the status of Appliance operation"), - // Provider: to.Ptr("Microsoft ResourceConnector"), - // Resource: to.Ptr("Appliance Operation Result"), - // }, - // IsDataAction: to.Ptr(false), - // Origin: to.Ptr("user,system"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListBySubscription.json -func ExampleAppliancesClient_NewListBySubscriptionPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armresourceconnector.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewAppliancesClient().NewListBySubscriptionPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ApplianceListResult = armresourceconnector.ApplianceListResult{ - // Value: []*armresourceconnector.Appliance{ - // { - // Name: to.Ptr("appliance01"), - // Type: to.Ptr("Microsoft.ResourceConnector/appliances"), - // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ResourceConnector/appliances/appliance01"), - // SystemData: &armresourceconnector.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-24T18:53:29.0928001Z"); return t}()), - // CreatedBy: to.Ptr("string"), - // CreatedByType: to.Ptr(armresourceconnector.CreatedByTypeApplication), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-24T18:53:29.0928001Z"); return t}()), - // LastModifiedBy: to.Ptr("string"), - // LastModifiedByType: to.Ptr(armresourceconnector.CreatedByTypeApplication), - // }, - // Location: to.Ptr("West US"), - // Properties: &armresourceconnector.ApplianceProperties{ - // Distro: to.Ptr(armresourceconnector.DistroAKSEdge), - // InfrastructureConfig: &armresourceconnector.AppliancePropertiesInfrastructureConfig{ - // Provider: to.Ptr(armresourceconnector.ProviderVMWare), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // Status: to.Ptr(armresourceconnector.StatusConnected), - // Version: to.Ptr("1.0.1"), - // }, - // }, - // { - // Name: to.Ptr("appliance02"), - // Type: to.Ptr("Microsoft.ResourceConnector/appliances"), - // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ResourceConnector/appliances/appliance02"), - // SystemData: &armresourceconnector.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-24T18:53:29.0928001Z"); return t}()), - // CreatedBy: to.Ptr("string"), - // CreatedByType: to.Ptr(armresourceconnector.CreatedByTypeApplication), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-24T18:53:29.0928001Z"); return t}()), - // LastModifiedBy: to.Ptr("string"), - // LastModifiedByType: to.Ptr(armresourceconnector.CreatedByTypeApplication), - // }, - // Location: to.Ptr("West US"), - // Properties: &armresourceconnector.ApplianceProperties{ - // Distro: to.Ptr(armresourceconnector.DistroAKSEdge), - // InfrastructureConfig: &armresourceconnector.AppliancePropertiesInfrastructureConfig{ - // Provider: to.Ptr(armresourceconnector.ProviderVMWare), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // Status: to.Ptr(armresourceconnector.StatusConnected), - // Version: to.Ptr("1.0.1"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/TelemetryConfig.json -func ExampleAppliancesClient_GetTelemetryConfig() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armresourceconnector.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAppliancesClient().GetTelemetryConfig(ctx, nil) - if err != nil { - log.Fatalf("failed to finish the request: %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.ApplianceGetTelemetryConfigResult = armresourceconnector.ApplianceGetTelemetryConfigResult{ - // TelemetryInstrumentationKey: to.Ptr("xxxxxxxxxxxxxxxxxxxxxxxxxxx"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListByResourceGroup.json -func ExampleAppliancesClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armresourceconnector.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewAppliancesClient().NewListByResourceGroupPager("testresourcegroup", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ApplianceListResult = armresourceconnector.ApplianceListResult{ - // Value: []*armresourceconnector.Appliance{ - // { - // Name: to.Ptr("appliance01"), - // Type: to.Ptr("Microsoft.ResourceConnector/appliances"), - // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ResourceConnector/appliances/appliance01"), - // SystemData: &armresourceconnector.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-24T18:53:29.0928001Z"); return t}()), - // CreatedBy: to.Ptr("string"), - // CreatedByType: to.Ptr(armresourceconnector.CreatedByTypeApplication), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-24T18:53:29.0928001Z"); return t}()), - // LastModifiedBy: to.Ptr("string"), - // LastModifiedByType: to.Ptr(armresourceconnector.CreatedByTypeApplication), - // }, - // Location: to.Ptr("West US"), - // Properties: &armresourceconnector.ApplianceProperties{ - // Distro: to.Ptr(armresourceconnector.DistroAKSEdge), - // InfrastructureConfig: &armresourceconnector.AppliancePropertiesInfrastructureConfig{ - // Provider: to.Ptr(armresourceconnector.ProviderVMWare), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // Status: to.Ptr(armresourceconnector.StatusConnected), - // Version: to.Ptr("1.0.1"), - // }, - // }, - // { - // Name: to.Ptr("appliance02"), - // Type: to.Ptr("Microsoft.ResourceConnector/appliances"), - // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ResourceConnector/appliances/appliance02"), - // SystemData: &armresourceconnector.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-24T18:53:29.0928001Z"); return t}()), - // CreatedBy: to.Ptr("string"), - // CreatedByType: to.Ptr(armresourceconnector.CreatedByTypeApplication), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-24T18:53:29.0928001Z"); return t}()), - // LastModifiedBy: to.Ptr("string"), - // LastModifiedByType: to.Ptr(armresourceconnector.CreatedByTypeApplication), - // }, - // Location: to.Ptr("West US"), - // Properties: &armresourceconnector.ApplianceProperties{ - // Distro: to.Ptr(armresourceconnector.DistroAKSEdge), - // InfrastructureConfig: &armresourceconnector.AppliancePropertiesInfrastructureConfig{ - // Provider: to.Ptr(armresourceconnector.ProviderVMWare), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // Status: to.Ptr(armresourceconnector.StatusConnected), - // Version: to.Ptr("1.0.1"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesGet.json -func ExampleAppliancesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armresourceconnector.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAppliancesClient().Get(ctx, "testresourcegroup", "appliance01", nil) - if err != nil { - log.Fatalf("failed to finish the request: %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.Appliance = armresourceconnector.Appliance{ - // Name: to.Ptr("appliance01"), - // Type: to.Ptr("Microsoft.ResourceConnector/appliances"), - // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ResourceConnector/appliances/appliance01"), - // SystemData: &armresourceconnector.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-24T18:53:29.0928001Z"); return t}()), - // CreatedBy: to.Ptr("string"), - // CreatedByType: to.Ptr(armresourceconnector.CreatedByTypeApplication), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-24T18:53:29.0928001Z"); return t}()), - // LastModifiedBy: to.Ptr("string"), - // LastModifiedByType: to.Ptr(armresourceconnector.CreatedByTypeApplication), - // }, - // Location: to.Ptr("West US"), - // Identity: &armresourceconnector.Identity{ - // Type: to.Ptr(armresourceconnector.ResourceIdentityTypeSystemAssigned), - // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), - // TenantID: to.Ptr("111111-1111-1111-1111-111111111111"), - // }, - // Properties: &armresourceconnector.ApplianceProperties{ - // Distro: to.Ptr(armresourceconnector.DistroAKSEdge), - // InfrastructureConfig: &armresourceconnector.AppliancePropertiesInfrastructureConfig{ - // Provider: to.Ptr(armresourceconnector.ProviderVMWare), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // Status: to.Ptr(armresourceconnector.StatusConnected), - // Version: to.Ptr("1.0.1"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesCreate_Update.json -func ExampleAppliancesClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armresourceconnector.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewAppliancesClient().BeginCreateOrUpdate(ctx, "testresourcegroup", "appliance01", armresourceconnector.Appliance{ - Location: to.Ptr("West US"), - Properties: &armresourceconnector.ApplianceProperties{ - Distro: to.Ptr(armresourceconnector.DistroAKSEdge), - InfrastructureConfig: &armresourceconnector.AppliancePropertiesInfrastructureConfig{ - Provider: to.Ptr(armresourceconnector.ProviderVMWare), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - 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.Appliance = armresourceconnector.Appliance{ - // Name: to.Ptr("appliance01"), - // Type: to.Ptr("Microsoft.ResourceConnector/appliances"), - // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.ResourceConnector/appliances/appliance01"), - // SystemData: &armresourceconnector.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-24T18:53:29.0928001Z"); return t}()), - // CreatedBy: to.Ptr("string"), - // CreatedByType: to.Ptr(armresourceconnector.CreatedByTypeApplication), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-24T18:53:29.0928001Z"); return t}()), - // LastModifiedBy: to.Ptr("string"), - // LastModifiedByType: to.Ptr(armresourceconnector.CreatedByTypeApplication), - // }, - // Location: to.Ptr("West US"), - // Identity: &armresourceconnector.Identity{ - // Type: to.Ptr(armresourceconnector.ResourceIdentityTypeSystemAssigned), - // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), - // TenantID: to.Ptr("111111-1111-1111-1111-111111111111"), - // }, - // Properties: &armresourceconnector.ApplianceProperties{ - // Distro: to.Ptr(armresourceconnector.DistroAKSEdge), - // InfrastructureConfig: &armresourceconnector.AppliancePropertiesInfrastructureConfig{ - // Provider: to.Ptr(armresourceconnector.ProviderVMWare), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // Status: to.Ptr(armresourceconnector.StatusConnected), - // Version: to.Ptr("1.0.1"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesDelete.json -func ExampleAppliancesClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armresourceconnector.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewAppliancesClient().BeginDelete(ctx, "testresourcegroup", "appliance01", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesPatch.json -func ExampleAppliancesClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armresourceconnector.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAppliancesClient().Update(ctx, "testresourcegroup", "appliance01", armresourceconnector.PatchableAppliance{ - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %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.Appliance = armresourceconnector.Appliance{ - // Name: to.Ptr("appliance01"), - // Type: to.Ptr("Microsoft.ResourceConnector/appliances"), - // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ResourceConnector/appliances/appliance01"), - // Location: to.Ptr("West US"), - // Tags: map[string]*string{ - // "key": to.Ptr("value"), - // }, - // Identity: &armresourceconnector.Identity{ - // Type: to.Ptr(armresourceconnector.ResourceIdentityTypeSystemAssigned), - // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), - // TenantID: to.Ptr("111111-1111-1111-1111-111111111111"), - // }, - // Properties: &armresourceconnector.ApplianceProperties{ - // Distro: to.Ptr(armresourceconnector.DistroAKSEdge), - // InfrastructureConfig: &armresourceconnector.AppliancePropertiesInfrastructureConfig{ - // Provider: to.Ptr(armresourceconnector.ProviderVMWare), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // Status: to.Ptr(armresourceconnector.StatusValidating), - // Version: to.Ptr("1.0.1"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListClusterUserCredential.json -func ExampleAppliancesClient_ListClusterUserCredential() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armresourceconnector.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAppliancesClient().ListClusterUserCredential(ctx, "testresourcegroup", "appliance01", nil) - if err != nil { - log.Fatalf("failed to finish the request: %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.ApplianceListCredentialResults = armresourceconnector.ApplianceListCredentialResults{ - // HybridConnectionConfig: &armresourceconnector.HybridConnectionConfig{ - // ExpirationTime: to.Ptr[int64](123456789), - // HybridConnectionName: to.Ptr("provider/type/bc36ffcf318d5bedfc05ba8b0628dba"), - // Relay: to.Ptr("relayName"), - // Token: to.Ptr("mockSecretOtherprovider/type/bc36ffcf318d5bedfc05ba91c157ReceiverToken"), - // }, - // Kubeconfigs: []*armresourceconnector.ApplianceCredentialKubeconfig{ - // { - // Name: to.Ptr(armresourceconnector.AccessProfileType("kubeconfigName1")), - // Value: to.Ptr("xxxxxxxxxxxxx"), - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListKeys.json -func ExampleAppliancesClient_ListKeys() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armresourceconnector.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAppliancesClient().ListKeys(ctx, "testresourcegroup", "appliance01", nil) - if err != nil { - log.Fatalf("failed to finish the request: %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.ApplianceListKeysResults = armresourceconnector.ApplianceListKeysResults{ - // ArtifactProfiles: map[string]*armresourceconnector.ArtifactProfile{ - // "LogsArtifactType": &armresourceconnector.ArtifactProfile{ - // Endpoint: to.Ptr("https://.blob.core.windows.net/?"), - // }, - // }, - // Kubeconfigs: []*armresourceconnector.ApplianceCredentialKubeconfig{ - // { - // Name: to.Ptr(armresourceconnector.AccessProfileType("kubeconfigName1")), - // Value: to.Ptr("xxxxxxxxxxxxx"), - // }}, - // SSHKeys: map[string]*armresourceconnector.SSHKey{ - // "LogsKey": &armresourceconnector.SSHKey{ - // Certificate: to.Ptr(""), - // CreationTimeStamp: to.Ptr[int64](1660946559), - // ExpirationTimeStamp: to.Ptr[int64](1724119358), - // PrivateKey: to.Ptr(""), - // }, - // "ManagementCAKey": &armresourceconnector.SSHKey{ - // PublicKey: to.Ptr(""), - // }, - // "SSHCustomerUser": &armresourceconnector.SSHKey{ - // PrivateKey: to.Ptr("xxxxxxxx"), - // PublicKey: to.Ptr("xxxxxxxx"), - // }, - // "ScopedAccessKey": &armresourceconnector.SSHKey{ - // Certificate: to.Ptr(""), - // CreationTimeStamp: to.Ptr[int64](1660946559), - // ExpirationTimeStamp: to.Ptr[int64](1724119358), - // PrivateKey: to.Ptr(""), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/UpgradeGraph.json -func ExampleAppliancesClient_GetUpgradeGraph() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armresourceconnector.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAppliancesClient().GetUpgradeGraph(ctx, "testresourcegroup", "appliance01", "stable", nil) - if err != nil { - log.Fatalf("failed to finish the request: %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.UpgradeGraph = armresourceconnector.UpgradeGraph{ - // Name: to.Ptr("stable"), - // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ResourceConnector/appliances/appliance01"), - // Properties: &armresourceconnector.UpgradeGraphProperties{ - // ApplianceVersion: to.Ptr("1.0.0"), - // SupportedVersions: []*armresourceconnector.SupportedVersion{ - // { - // Metadata: &armresourceconnector.SupportedVersionMetadata{ - // CatalogVersion: &armresourceconnector.SupportedVersionCatalogVersion{ - // Name: to.Ptr("cloudop-product-information"), - // Data: &armresourceconnector.SupportedVersionCatalogVersionData{ - // Audience: to.Ptr("stable"), - // Catalog: to.Ptr("arc-appliance-stable-catalogs-ext"), - // Offer: to.Ptr("arcappliance"), - // Version: to.Ptr("0.1.5.11115"), - // }, - // Namespace: to.Ptr("cloudop-system"), - // }, - // }, - // Version: to.Ptr("1.0.1"), - // }}, - // }, - // } -} diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/autorest.md b/sdk/resourcemanager/resourceconnector/armresourceconnector/autorest.md index 9b5ab1d4d6c6..08022685fe2b 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/autorest.md +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/autorest.md @@ -5,9 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/resourceconnector/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/resourceconnector/resource-manager/readme.go.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/resourceconnector/resource-manager/readme.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/resourceconnector/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.4.0 -tag: package-2022-10-27 +module-version: 1.0.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/client_factory.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/client_factory.go index c3ab678ec0f0..5c129c92972e 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/client_factory.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/client_factory.go @@ -3,9 +3,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armresourceconnector diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/constants.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/constants.go index 74584fb1b58c..b373b75939d6 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/constants.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/constants.go @@ -3,15 +3,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armresourceconnector const ( moduleName = "armresourceconnector" - moduleVersion = "v0.4.0" + moduleVersion = "v1.0.0" ) // AccessProfileType - Name which contains the role of the kubeconfig. @@ -68,19 +67,15 @@ func PossibleDistroValues() []Distro { type Provider string const ( - ProviderHCI Provider = "HCI" - ProviderKubeVirt Provider = "KubeVirt" - ProviderOpenStack Provider = "OpenStack" - ProviderSCVMM Provider = "SCVMM" - ProviderVMWare Provider = "VMWare" + ProviderHCI Provider = "HCI" + ProviderSCVMM Provider = "SCVMM" + ProviderVMWare Provider = "VMWare" ) // PossibleProviderValues returns the possible values for the Provider const type. func PossibleProviderValues() []Provider { return []Provider{ ProviderHCI, - ProviderKubeVirt, - ProviderOpenStack, ProviderSCVMM, ProviderVMWare, } @@ -108,6 +103,7 @@ type Status string const ( StatusConnected Status = "Connected" StatusConnecting Status = "Connecting" + StatusETCDSnapshotFailed Status = "ETCDSnapshotFailed" StatusImageDeprovisioning Status = "ImageDeprovisioning" StatusImageDownloaded Status = "ImageDownloaded" StatusImageDownloading Status = "ImageDownloading" @@ -130,6 +126,10 @@ const ( StatusUpgradePrerequisitesCompleted Status = "UpgradePrerequisitesCompleted" StatusUpgradingKVAIO Status = "UpgradingKVAIO" StatusValidating Status = "Validating" + StatusValidatingETCDHealth Status = "ValidatingETCDHealth" + StatusValidatingImageDownload Status = "ValidatingImageDownload" + StatusValidatingImageUpload Status = "ValidatingImageUpload" + StatusValidatingSFSConnectivity Status = "ValidatingSFSConnectivity" StatusWaitingForCloudOperator Status = "WaitingForCloudOperator" StatusWaitingForHeartbeat Status = "WaitingForHeartbeat" StatusWaitingForKVAIO Status = "WaitingForKVAIO" @@ -140,6 +140,7 @@ func PossibleStatusValues() []Status { return []Status{ StatusConnected, StatusConnecting, + StatusETCDSnapshotFailed, StatusImageDeprovisioning, StatusImageDownloaded, StatusImageDownloading, @@ -162,6 +163,10 @@ func PossibleStatusValues() []Status { StatusUpgradePrerequisitesCompleted, StatusUpgradingKVAIO, StatusValidating, + StatusValidatingETCDHealth, + StatusValidatingImageDownload, + StatusValidatingImageUpload, + StatusValidatingSFSConnectivity, StatusWaitingForCloudOperator, StatusWaitingForHeartbeat, StatusWaitingForKVAIO, diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/go.mod b/sdk/resourcemanager/resourceconnector/armresourceconnector/go.mod index 5eadd54e303f..333b0d39e638 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/go.mod +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/go.mod @@ -2,20 +2,12 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourceconnector/a 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 -) +require github.com/Azure/azure-sdk-for-go/sdk/azcore v1.6.1 require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0 // indirect - github.com/golang-jwt/jwt/v4 v4.5.0 // indirect - github.com/google/uuid v1.3.0 // indirect - github.com/kylelemons/godebug v1.1.0 // indirect - github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // 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 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + golang.org/x/net v0.8.0 // indirect + golang.org/x/text v0.8.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/go.sum b/sdk/resourcemanager/resourceconnector/armresourceconnector/go.sum index 8ba445a8c4da..5c6bee428364 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/go.sum +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/go.sum @@ -1,31 +1,15 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 h1:rTnT/Jrcm+figWlYz4Ixzt0SJVR2cMC8lvZcimipiEY= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0/go.mod h1:ON4tFdPTwRcgWEaVDrN3584Ef+b7GgSJaXxe5fW9t4M= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 h1:uqM+VoHjVH6zdlkLF2b6O0ZANcHoj3rO0PoQ3jglUJA= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2/go.mod h1:twTKAa1E6hLmSDjLhaCkbTMQKc7p/rNLU40rLxGEOCI= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 h1:leh5DwKv6Ihwi+h60uHtn6UWAxBbZ0q8DwQVMzf61zw= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= -github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0 h1:UE9n9rkJF62ArLb1F3DEjRt8O3jLwMWdSoypKV4f3MU= -github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0/go.mod h1:kgDmCTgBzIEPFElEF+FK0SdjAor06dRq2Go927dnQ6o= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.6.1 h1:SEy2xmstIphdPwNBUi7uhvjyjhVKISfwjfOJmuy7kg4= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.6.1/go.mod h1:bjGvMhVMb+EEm3VRNQawDMUyMMjo+S5ewNjflkep/0Q= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0 h1:sXr+ck84g/ZlZUOZiNELInmMgOsuGwdjjVkEIde0OtY= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0/go.mod h1:okt5dMMTOFjX/aovMlrjvvXoPMBVSPzk9185BT0+eZM= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= -github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU= -github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -golang.org/x/crypto v0.6.0 h1:qfktjS5LUO+fFKeJXZ+ikTRijMmljikvG68fpMMruSc= -golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= -golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= -golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/models.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/models.go index 1b4a7aa393bf..e9d53f7300f0 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/models.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/models.go @@ -3,9 +3,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armresourceconnector @@ -149,69 +148,6 @@ type AppliancePropertiesInfrastructureConfig struct { Provider *Provider } -// AppliancesClientBeginCreateOrUpdateOptions contains the optional parameters for the AppliancesClient.BeginCreateOrUpdate -// method. -type AppliancesClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// AppliancesClientBeginDeleteOptions contains the optional parameters for the AppliancesClient.BeginDelete method. -type AppliancesClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// AppliancesClientGetOptions contains the optional parameters for the AppliancesClient.Get method. -type AppliancesClientGetOptions struct { - // placeholder for future optional parameters -} - -// AppliancesClientGetTelemetryConfigOptions contains the optional parameters for the AppliancesClient.GetTelemetryConfig -// method. -type AppliancesClientGetTelemetryConfigOptions struct { - // placeholder for future optional parameters -} - -// AppliancesClientGetUpgradeGraphOptions contains the optional parameters for the AppliancesClient.GetUpgradeGraph method. -type AppliancesClientGetUpgradeGraphOptions struct { - // placeholder for future optional parameters -} - -// AppliancesClientListByResourceGroupOptions contains the optional parameters for the AppliancesClient.NewListByResourceGroupPager -// method. -type AppliancesClientListByResourceGroupOptions struct { - // placeholder for future optional parameters -} - -// AppliancesClientListBySubscriptionOptions contains the optional parameters for the AppliancesClient.NewListBySubscriptionPager -// method. -type AppliancesClientListBySubscriptionOptions struct { - // placeholder for future optional parameters -} - -// AppliancesClientListClusterUserCredentialOptions contains the optional parameters for the AppliancesClient.ListClusterUserCredential -// method. -type AppliancesClientListClusterUserCredentialOptions struct { - // placeholder for future optional parameters -} - -// AppliancesClientListKeysOptions contains the optional parameters for the AppliancesClient.ListKeys method. -type AppliancesClientListKeysOptions struct { - // placeholder for future optional parameters -} - -// AppliancesClientListOperationsOptions contains the optional parameters for the AppliancesClient.NewListOperationsPager -// method. -type AppliancesClientListOperationsOptions struct { - // placeholder for future optional parameters -} - -// AppliancesClientUpdateOptions contains the optional parameters for the AppliancesClient.Update method. -type AppliancesClientUpdateOptions struct { - // placeholder for future optional parameters -} - // ArtifactProfile - Appliance ArtifactProfile definition. type ArtifactProfile struct { // READ-ONLY; Endpoint is the URL to upload artifacts to. diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/models_serde.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/models_serde.go index 33a2f2daf85e..2b06f12c6e77 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/models_serde.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/models_serde.go @@ -3,9 +3,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armresourceconnector diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/options.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/options.go new file mode 100644 index 000000000000..d569c3adc722 --- /dev/null +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/options.go @@ -0,0 +1,72 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armresourceconnector + +// AppliancesClientBeginCreateOrUpdateOptions contains the optional parameters for the AppliancesClient.BeginCreateOrUpdate +// method. +type AppliancesClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// AppliancesClientBeginDeleteOptions contains the optional parameters for the AppliancesClient.BeginDelete method. +type AppliancesClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// AppliancesClientGetOptions contains the optional parameters for the AppliancesClient.Get method. +type AppliancesClientGetOptions struct { + // placeholder for future optional parameters +} + +// AppliancesClientGetTelemetryConfigOptions contains the optional parameters for the AppliancesClient.GetTelemetryConfig +// method. +type AppliancesClientGetTelemetryConfigOptions struct { + // placeholder for future optional parameters +} + +// AppliancesClientGetUpgradeGraphOptions contains the optional parameters for the AppliancesClient.GetUpgradeGraph method. +type AppliancesClientGetUpgradeGraphOptions struct { + // placeholder for future optional parameters +} + +// AppliancesClientListByResourceGroupOptions contains the optional parameters for the AppliancesClient.NewListByResourceGroupPager +// method. +type AppliancesClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// AppliancesClientListBySubscriptionOptions contains the optional parameters for the AppliancesClient.NewListBySubscriptionPager +// method. +type AppliancesClientListBySubscriptionOptions struct { + // placeholder for future optional parameters +} + +// AppliancesClientListClusterUserCredentialOptions contains the optional parameters for the AppliancesClient.ListClusterUserCredential +// method. +type AppliancesClientListClusterUserCredentialOptions struct { + // placeholder for future optional parameters +} + +// AppliancesClientListKeysOptions contains the optional parameters for the AppliancesClient.ListKeys method. +type AppliancesClientListKeysOptions struct { + // placeholder for future optional parameters +} + +// AppliancesClientListOperationsOptions contains the optional parameters for the AppliancesClient.NewListOperationsPager +// method. +type AppliancesClientListOperationsOptions struct { + // placeholder for future optional parameters +} + +// AppliancesClientUpdateOptions contains the optional parameters for the AppliancesClient.Update method. +type AppliancesClientUpdateOptions struct { + // placeholder for future optional parameters +} diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/response_types.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/response_types.go index 6b3369d11f76..03a97b191cc9 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/response_types.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/response_types.go @@ -3,14 +3,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armresourceconnector // AppliancesClientCreateOrUpdateResponse contains the response from method AppliancesClient.BeginCreateOrUpdate. type AppliancesClientCreateOrUpdateResponse struct { + // Appliances definition. Appliance } @@ -21,45 +21,54 @@ type AppliancesClientDeleteResponse struct { // AppliancesClientGetResponse contains the response from method AppliancesClient.Get. type AppliancesClientGetResponse struct { + // Appliances definition. Appliance } // AppliancesClientGetTelemetryConfigResponse contains the response from method AppliancesClient.GetTelemetryConfig. type AppliancesClientGetTelemetryConfigResponse struct { + // The Get Telemetry Config Result appliance. ApplianceGetTelemetryConfigResult } // AppliancesClientGetUpgradeGraphResponse contains the response from method AppliancesClient.GetUpgradeGraph. type AppliancesClientGetUpgradeGraphResponse struct { + // The Upgrade Graph for appliance. UpgradeGraph } // AppliancesClientListByResourceGroupResponse contains the response from method AppliancesClient.NewListByResourceGroupPager. type AppliancesClientListByResourceGroupResponse struct { + // The List Appliances operation response. ApplianceListResult } // AppliancesClientListBySubscriptionResponse contains the response from method AppliancesClient.NewListBySubscriptionPager. type AppliancesClientListBySubscriptionResponse struct { + // The List Appliances operation response. ApplianceListResult } // AppliancesClientListClusterUserCredentialResponse contains the response from method AppliancesClient.ListClusterUserCredential. type AppliancesClientListClusterUserCredentialResponse struct { + // The List Cluster User Credential appliance. ApplianceListCredentialResults } // AppliancesClientListKeysResponse contains the response from method AppliancesClient.ListKeys. type AppliancesClientListKeysResponse struct { + // The List Cluster Keys Results appliance. ApplianceListKeysResults } // AppliancesClientListOperationsResponse contains the response from method AppliancesClient.NewListOperationsPager. type AppliancesClientListOperationsResponse struct { + // Lists of Appliances operations. ApplianceOperationsList } // AppliancesClientUpdateResponse contains the response from method AppliancesClient.Update. type AppliancesClientUpdateResponse struct { + // Appliances definition. Appliance } diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/time_rfc3339.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/time_rfc3339.go index 1135695df13d..f3938feb0d0c 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/time_rfc3339.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/time_rfc3339.go @@ -3,9 +3,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. package armresourceconnector