diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/CHANGELOG.md b/sdk/resourcemanager/resourceconnector/armresourceconnector/CHANGELOG.md index 3aae379ccb9e..25b5fcc33fcf 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/CHANGELOG.md +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/CHANGELOG.md @@ -1,5 +1,25 @@ # Release History +## 0.4.0 (2023-04-28) +### Breaking Changes + +- Type alias `SSHKeyType` has been removed +- Function `*AppliancesClient.ListClusterCustomerUserCredential` has been removed +- Struct `ApplianceListClusterCustomerUserCredentialResults` has been removed + +### Features Added + +- New value `StatusImageDeprovisioning`, `StatusImageDownloaded`, `StatusImageDownloading`, `StatusImagePending`, `StatusImageProvisioned`, `StatusImageProvisioning`, `StatusImageUnknown`, `StatusUpgradingKVAIO`, `StatusWaitingForKVAIO` added to enum type `Status` +- New function `*AppliancesClient.GetTelemetryConfig(context.Context, *AppliancesClientGetTelemetryConfigOptions) (AppliancesClientGetTelemetryConfigResponse, error)` +- New function `*AppliancesClient.ListKeys(context.Context, string, string, *AppliancesClientListKeysOptions) (AppliancesClientListKeysResponse, error)` +- New struct `ApplianceGetTelemetryConfigResult` +- New struct `ApplianceListKeysResults` +- New struct `ArtifactProfile` +- New field `Certificate` in struct `SSHKey` +- New field `CreationTimeStamp` in struct `SSHKey` +- New field `ExpirationTimeStamp` in struct `SSHKey` + + ## 0.3.1 (2023-04-14) ### Bug Fixes diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client.go index ec064f7c0f67..25ed89d9dbaa 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client.go @@ -47,7 +47,7 @@ func NewAppliancesClient(subscriptionID string, credential azcore.TokenCredentia // BeginCreateOrUpdate - Creates or updates an Appliance in the specified Subscription and Resource Group. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-04-15-preview +// Generated from API version 2022-10-27 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - resourceName - Appliances name. // - parameters - Parameters supplied to create or update an Appliance. @@ -70,7 +70,7 @@ func (client *AppliancesClient) BeginCreateOrUpdate(ctx context.Context, resourc // CreateOrUpdate - Creates or updates an Appliance in the specified Subscription and Resource Group. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-04-15-preview +// 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) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, resourceName, parameters, options) if err != nil { @@ -106,7 +106,7 @@ func (client *AppliancesClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-15-preview") + 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) @@ -115,7 +115,7 @@ func (client *AppliancesClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-04-15-preview +// Generated from API version 2022-10-27 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - resourceName - Appliances name. // - options - AppliancesClientBeginDeleteOptions contains the optional parameters for the AppliancesClient.BeginDelete method. @@ -136,7 +136,7 @@ func (client *AppliancesClient) BeginDelete(ctx context.Context, resourceGroupNa // Delete - Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-04-15-preview +// Generated from API version 2022-10-27 func (client *AppliancesClient) deleteOperation(ctx context.Context, resourceGroupName string, resourceName string, options *AppliancesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, resourceName, options) if err != nil { @@ -172,7 +172,7 @@ func (client *AppliancesClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-15-preview") + reqQP.Set("api-version", "2022-10-27") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -181,7 +181,7 @@ func (client *AppliancesClient) deleteCreateRequest(ctx context.Context, resourc // Get - Gets the details of an Appliance with a specified resource group and name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-04-15-preview +// Generated from API version 2022-10-27 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - resourceName - Appliances name. // - options - AppliancesClientGetOptions contains the optional parameters for the AppliancesClient.Get method. @@ -220,7 +220,7 @@ func (client *AppliancesClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-15-preview") + reqQP.Set("api-version", "2022-10-27") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -235,11 +235,59 @@ func (client *AppliancesClient) getHandleResponse(resp *http.Response) (Applianc return result, nil } +// GetTelemetryConfig - Gets the telemetry config. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-10-27 +// - options - AppliancesClientGetTelemetryConfigOptions contains the optional parameters for the AppliancesClient.GetTelemetryConfig +// method. +func (client *AppliancesClient) GetTelemetryConfig(ctx context.Context, options *AppliancesClientGetTelemetryConfigOptions) (AppliancesClientGetTelemetryConfigResponse, error) { + req, err := client.getTelemetryConfigCreateRequest(ctx, options) + if err != nil { + return AppliancesClientGetTelemetryConfigResponse{}, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return AppliancesClientGetTelemetryConfigResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return AppliancesClientGetTelemetryConfigResponse{}, runtime.NewResponseError(resp) + } + return client.getTelemetryConfigHandleResponse(resp) +} + +// getTelemetryConfigCreateRequest creates the GetTelemetryConfig request. +func (client *AppliancesClient) getTelemetryConfigCreateRequest(ctx context.Context, options *AppliancesClientGetTelemetryConfigOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceConnector/telemetryconfig" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-10-27") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getTelemetryConfigHandleResponse handles the GetTelemetryConfig response. +func (client *AppliancesClient) getTelemetryConfigHandleResponse(resp *http.Response) (AppliancesClientGetTelemetryConfigResponse, error) { + result := AppliancesClientGetTelemetryConfigResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ApplianceGetTelemetryConfigResult); err != nil { + return AppliancesClientGetTelemetryConfigResponse{}, err + } + return result, nil +} + // GetUpgradeGraph - Gets the upgrade graph of an Appliance with a specified resource group and name and specific release // train. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-04-15-preview +// Generated from API version 2022-10-27 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - resourceName - Appliances name. // - upgradeGraph - Upgrade graph version, ex - stable @@ -284,7 +332,7 @@ func (client *AppliancesClient) getUpgradeGraphCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-15-preview") + reqQP.Set("api-version", "2022-10-27") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -302,7 +350,7 @@ func (client *AppliancesClient) getUpgradeGraphHandleResponse(resp *http.Respons // NewListByResourceGroupPager - Gets a list of Appliances in the specified subscription and resource group. The operation // returns properties of each Appliance. // -// Generated from API version 2022-04-15-preview +// Generated from API version 2022-10-27 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - AppliancesClientListByResourceGroupOptions contains the optional parameters for the AppliancesClient.NewListByResourceGroupPager // method. @@ -350,7 +398,7 @@ func (client *AppliancesClient) listByResourceGroupCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-15-preview") + reqQP.Set("api-version", "2022-10-27") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -368,7 +416,7 @@ func (client *AppliancesClient) listByResourceGroupHandleResponse(resp *http.Res // NewListBySubscriptionPager - Gets a list of Appliances in the specified subscription. The operation returns properties // of each Appliance // -// Generated from API version 2022-04-15-preview +// Generated from API version 2022-10-27 // - options - AppliancesClientListBySubscriptionOptions contains the optional parameters for the AppliancesClient.NewListBySubscriptionPager // method. func (client *AppliancesClient) NewListBySubscriptionPager(options *AppliancesClientListBySubscriptionOptions) *runtime.Pager[AppliancesClientListBySubscriptionResponse] { @@ -411,7 +459,7 @@ func (client *AppliancesClient) listBySubscriptionCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-15-preview") + reqQP.Set("api-version", "2022-10-27") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -426,32 +474,32 @@ func (client *AppliancesClient) listBySubscriptionHandleResponse(resp *http.Resp return result, nil } -// ListClusterCustomerUserCredential - Returns the cluster customer user credentials for the dedicated appliance. +// ListClusterUserCredential - Returns the cluster user credentials for the dedicated appliance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-04-15-preview +// Generated from API version 2022-10-27 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - resourceName - Appliances name. -// - options - AppliancesClientListClusterCustomerUserCredentialOptions contains the optional parameters for the AppliancesClient.ListClusterCustomerUserCredential +// - options - AppliancesClientListClusterUserCredentialOptions contains the optional parameters for the AppliancesClient.ListClusterUserCredential // method. -func (client *AppliancesClient) ListClusterCustomerUserCredential(ctx context.Context, resourceGroupName string, resourceName string, options *AppliancesClientListClusterCustomerUserCredentialOptions) (AppliancesClientListClusterCustomerUserCredentialResponse, error) { - req, err := client.listClusterCustomerUserCredentialCreateRequest(ctx, resourceGroupName, resourceName, options) +func (client *AppliancesClient) ListClusterUserCredential(ctx context.Context, resourceGroupName string, resourceName string, options *AppliancesClientListClusterUserCredentialOptions) (AppliancesClientListClusterUserCredentialResponse, error) { + req, err := client.listClusterUserCredentialCreateRequest(ctx, resourceGroupName, resourceName, options) if err != nil { - return AppliancesClientListClusterCustomerUserCredentialResponse{}, err + return AppliancesClientListClusterUserCredentialResponse{}, err } resp, err := client.internal.Pipeline().Do(req) if err != nil { - return AppliancesClientListClusterCustomerUserCredentialResponse{}, err + return AppliancesClientListClusterUserCredentialResponse{}, err } if !runtime.HasStatusCode(resp, http.StatusOK) { - return AppliancesClientListClusterCustomerUserCredentialResponse{}, runtime.NewResponseError(resp) + return AppliancesClientListClusterUserCredentialResponse{}, runtime.NewResponseError(resp) } - return client.listClusterCustomerUserCredentialHandleResponse(resp) + return client.listClusterUserCredentialHandleResponse(resp) } -// listClusterCustomerUserCredentialCreateRequest creates the ListClusterCustomerUserCredential request. -func (client *AppliancesClient) listClusterCustomerUserCredentialCreateRequest(ctx context.Context, resourceGroupName string, resourceName string, options *AppliancesClientListClusterCustomerUserCredentialOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listClusterCustomerUserCredential" +// listClusterUserCredentialCreateRequest creates the ListClusterUserCredential request. +func (client *AppliancesClient) listClusterUserCredentialCreateRequest(ctx context.Context, resourceGroupName string, resourceName string, options *AppliancesClientListClusterUserCredentialOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listClusterUserCredential" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } @@ -469,47 +517,46 @@ func (client *AppliancesClient) listClusterCustomerUserCredentialCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-15-preview") + reqQP.Set("api-version", "2022-10-27") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } -// listClusterCustomerUserCredentialHandleResponse handles the ListClusterCustomerUserCredential response. -func (client *AppliancesClient) listClusterCustomerUserCredentialHandleResponse(resp *http.Response) (AppliancesClientListClusterCustomerUserCredentialResponse, error) { - result := AppliancesClientListClusterCustomerUserCredentialResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.ApplianceListClusterCustomerUserCredentialResults); err != nil { - return AppliancesClientListClusterCustomerUserCredentialResponse{}, err +// listClusterUserCredentialHandleResponse handles the ListClusterUserCredential response. +func (client *AppliancesClient) listClusterUserCredentialHandleResponse(resp *http.Response) (AppliancesClientListClusterUserCredentialResponse, error) { + result := AppliancesClientListClusterUserCredentialResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ApplianceListCredentialResults); err != nil { + return AppliancesClientListClusterUserCredentialResponse{}, err } return result, nil } -// ListClusterUserCredential - Returns the cluster user credentials for the dedicated appliance. +// ListKeys - Returns the cluster customer credentials for the dedicated appliance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-04-15-preview +// Generated from API version 2022-10-27 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - resourceName - Appliances name. -// - 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) { - req, err := client.listClusterUserCredentialCreateRequest(ctx, resourceGroupName, resourceName, options) +// - 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) { + req, err := client.listKeysCreateRequest(ctx, resourceGroupName, resourceName, options) if err != nil { - return AppliancesClientListClusterUserCredentialResponse{}, err + return AppliancesClientListKeysResponse{}, err } resp, err := client.internal.Pipeline().Do(req) if err != nil { - return AppliancesClientListClusterUserCredentialResponse{}, err + return AppliancesClientListKeysResponse{}, err } if !runtime.HasStatusCode(resp, http.StatusOK) { - return AppliancesClientListClusterUserCredentialResponse{}, runtime.NewResponseError(resp) + return AppliancesClientListKeysResponse{}, runtime.NewResponseError(resp) } - return client.listClusterUserCredentialHandleResponse(resp) + return client.listKeysHandleResponse(resp) } -// listClusterUserCredentialCreateRequest creates the ListClusterUserCredential request. -func (client *AppliancesClient) listClusterUserCredentialCreateRequest(ctx context.Context, resourceGroupName string, resourceName string, options *AppliancesClientListClusterUserCredentialOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listClusterUserCredential" +// listKeysCreateRequest creates the ListKeys request. +func (client *AppliancesClient) listKeysCreateRequest(ctx context.Context, resourceGroupName string, resourceName string, options *AppliancesClientListKeysOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listkeys" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } @@ -527,24 +574,24 @@ func (client *AppliancesClient) listClusterUserCredentialCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-15-preview") + reqQP.Set("api-version", "2022-10-27") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } -// listClusterUserCredentialHandleResponse handles the ListClusterUserCredential response. -func (client *AppliancesClient) listClusterUserCredentialHandleResponse(resp *http.Response) (AppliancesClientListClusterUserCredentialResponse, error) { - result := AppliancesClientListClusterUserCredentialResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.ApplianceListCredentialResults); err != nil { - return AppliancesClientListClusterUserCredentialResponse{}, err +// listKeysHandleResponse handles the ListKeys response. +func (client *AppliancesClient) listKeysHandleResponse(resp *http.Response) (AppliancesClientListKeysResponse, error) { + result := AppliancesClientListKeysResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ApplianceListKeysResults); err != nil { + return AppliancesClientListKeysResponse{}, err } return result, nil } // NewListOperationsPager - Lists all available Appliances operations. // -// Generated from API version 2022-04-15-preview +// Generated from API version 2022-10-27 // - options - AppliancesClientListOperationsOptions contains the optional parameters for the AppliancesClient.NewListOperationsPager // method. func (client *AppliancesClient) NewListOperationsPager(options *AppliancesClientListOperationsOptions) *runtime.Pager[AppliancesClientListOperationsResponse] { @@ -583,7 +630,7 @@ func (client *AppliancesClient) listOperationsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-15-preview") + reqQP.Set("api-version", "2022-10-27") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -601,7 +648,7 @@ func (client *AppliancesClient) listOperationsHandleResponse(resp *http.Response // Update - Updates an Appliance with the specified Resource Name in the specified Resource Group and Subscription. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-04-15-preview +// Generated from API version 2022-10-27 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - resourceName - Appliances name. // - parameters - The updatable fields of an existing Appliance. @@ -641,7 +688,7 @@ func (client *AppliancesClient) updateCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-15-preview") + 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) diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client_example_test.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client_example_test.go index 47c5bd8ace38..cc09f5e9a458 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client_example_test.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/appliances_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourceconnector/armresourceconnector" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/a7de71ef99f5ea2aefe38bbd3c55db09c64547e8/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/preview/2022-04-15-preview/examples/AppliancesListOperations.json +// 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 { @@ -134,7 +134,7 @@ func ExampleAppliancesClient_NewListOperationsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/a7de71ef99f5ea2aefe38bbd3c55db09c64547e8/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/preview/2022-04-15-preview/examples/AppliancesListBySubscription.json +// 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 { @@ -162,6 +162,14 @@ func ExampleAppliancesClient_NewListBySubscriptionPager() { // 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), @@ -172,6 +180,11 @@ func ExampleAppliancesClient_NewListBySubscriptionPager() { // 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"), @@ -180,11 +193,6 @@ func ExampleAppliancesClient_NewListBySubscriptionPager() { // LastModifiedBy: to.Ptr("string"), // LastModifiedByType: to.Ptr(armresourceconnector.CreatedByTypeApplication), // }, - // }, - // { - // 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"), // Location: to.Ptr("West US"), // Properties: &armresourceconnector.ApplianceProperties{ // Distro: to.Ptr(armresourceconnector.DistroAKSEdge), @@ -195,20 +203,35 @@ func ExampleAppliancesClient_NewListBySubscriptionPager() { // Status: to.Ptr(armresourceconnector.StatusConnected), // Version: to.Ptr("1.0.1"), // }, - // 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), - // }, // }}, // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/a7de71ef99f5ea2aefe38bbd3c55db09c64547e8/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/preview/2022-04-15-preview/examples/AppliancesListByResourceGroup.json +// 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 { @@ -236,6 +259,14 @@ func ExampleAppliancesClient_NewListByResourceGroupPager() { // 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), @@ -246,6 +277,11 @@ func ExampleAppliancesClient_NewListByResourceGroupPager() { // 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"), @@ -254,11 +290,6 @@ func ExampleAppliancesClient_NewListByResourceGroupPager() { // LastModifiedBy: to.Ptr("string"), // LastModifiedByType: to.Ptr(armresourceconnector.CreatedByTypeApplication), // }, - // }, - // { - // 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"), // Location: to.Ptr("West US"), // Properties: &armresourceconnector.ApplianceProperties{ // Distro: to.Ptr(armresourceconnector.DistroAKSEdge), @@ -269,20 +300,12 @@ func ExampleAppliancesClient_NewListByResourceGroupPager() { // Status: to.Ptr(armresourceconnector.StatusConnected), // Version: to.Ptr("1.0.1"), // }, - // 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), - // }, // }}, // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/a7de71ef99f5ea2aefe38bbd3c55db09c64547e8/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/preview/2022-04-15-preview/examples/AppliancesGet.json +// 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 { @@ -304,6 +327,14 @@ func ExampleAppliancesClient_Get() { // 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), @@ -319,18 +350,10 @@ func ExampleAppliancesClient_Get() { // Status: to.Ptr(armresourceconnector.StatusConnected), // Version: to.Ptr("1.0.1"), // }, - // 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), - // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/a7de71ef99f5ea2aefe38bbd3c55db09c64547e8/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/preview/2022-04-15-preview/examples/AppliancesCreate_Update.json +// 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 { @@ -364,6 +387,14 @@ func ExampleAppliancesClient_BeginCreateOrUpdate() { // 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), @@ -379,18 +410,10 @@ func ExampleAppliancesClient_BeginCreateOrUpdate() { // Status: to.Ptr(armresourceconnector.StatusConnected), // Version: to.Ptr("1.0.1"), // }, - // 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), - // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/a7de71ef99f5ea2aefe38bbd3c55db09c64547e8/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/preview/2022-04-15-preview/examples/AppliancesDelete.json +// 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 { @@ -411,7 +434,7 @@ func ExampleAppliancesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/a7de71ef99f5ea2aefe38bbd3c55db09c64547e8/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/preview/2022-04-15-preview/examples/AppliancesPatch.json +// 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 { @@ -458,8 +481,8 @@ func ExampleAppliancesClient_Update() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/a7de71ef99f5ea2aefe38bbd3c55db09c64547e8/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/preview/2022-04-15-preview/examples/AppliancesListClusterCustomerUserCredential.json -func ExampleAppliancesClient_ListClusterCustomerUserCredential() { +// 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) @@ -469,30 +492,30 @@ func ExampleAppliancesClient_ListClusterCustomerUserCredential() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := clientFactory.NewAppliancesClient().ListClusterCustomerUserCredential(ctx, "testresourcegroup", "appliance01", nil) + 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.ApplianceListClusterCustomerUserCredentialResults = armresourceconnector.ApplianceListClusterCustomerUserCredentialResults{ + // 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"), // }}, - // SSHKeys: map[string]*armresourceconnector.SSHKey{ - // "SSHCustomerUser": &armresourceconnector.SSHKey{ - // PrivateKey: to.Ptr("xxxxxxxx"), - // PublicKey: to.Ptr("xxxxxxxx"), - // }, - // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/a7de71ef99f5ea2aefe38bbd3c55db09c64547e8/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/preview/2022-04-15-preview/examples/AppliancesListClusterUserCredential.json -func ExampleAppliancesClient_ListClusterUserCredential() { +// 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) @@ -502,29 +525,49 @@ func ExampleAppliancesClient_ListClusterUserCredential() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := clientFactory.NewAppliancesClient().ListClusterUserCredential(ctx, "testresourcegroup", "appliance01", nil) + 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.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"), + // 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/a7de71ef99f5ea2aefe38bbd3c55db09c64547e8/specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/preview/2022-04-15-preview/examples/UpgradeGraph.json +// 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 { diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/autorest.md b/sdk/resourcemanager/resourceconnector/armresourceconnector/autorest.md index d562061d2f21..9b5ab1d4d6c6 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/autorest.md +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/a7de71ef99f5ea2aefe38bbd3c55db09c64547e8/specification/resourceconnector/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/a7de71ef99f5ea2aefe38bbd3c55db09c64547e8/specification/resourceconnector/resource-manager/readme.go.md +- 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 license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.3.1 - +module-version: 0.4.0 +tag: package-2022-10-27 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/build.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/build.go index a6141d73409a..3fe9495dcbe0 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/build.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/build.go @@ -2,6 +2,6 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // This file enables 'go generate' to regenerate this specific SDK -//go:generate pwsh ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate resourcemanager/resourceconnector/armresourceconnector +//go:generate pwsh ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate -removeUnreferencedTypes resourcemanager/resourceconnector/armresourceconnector package armresourceconnector diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/constants.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/constants.go index 50eb55f346a4..74584fb1b58c 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/constants.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/constants.go @@ -11,7 +11,7 @@ package armresourceconnector const ( moduleName = "armresourceconnector" - moduleVersion = "v0.3.1" + moduleVersion = "v0.4.0" ) // AccessProfileType - Name which contains the role of the kubeconfig. @@ -102,26 +102,19 @@ func PossibleResourceIdentityTypeValues() []ResourceIdentityType { } } -// SSHKeyType - Appliance SSHKeyType definition. -type SSHKeyType string - -const ( - SSHKeyTypeSSHCustomerUser SSHKeyType = "SSHCustomerUser" -) - -// PossibleSSHKeyTypeValues returns the possible values for the SSHKeyType const type. -func PossibleSSHKeyTypeValues() []SSHKeyType { - return []SSHKeyType{ - SSHKeyTypeSSHCustomerUser, - } -} - // Status - Appliance’s health and state of connection to on-prem type Status string const ( StatusConnected Status = "Connected" StatusConnecting Status = "Connecting" + StatusImageDeprovisioning Status = "ImageDeprovisioning" + StatusImageDownloaded Status = "ImageDownloaded" + StatusImageDownloading Status = "ImageDownloading" + StatusImagePending Status = "ImagePending" + StatusImageProvisioned Status = "ImageProvisioned" + StatusImageProvisioning Status = "ImageProvisioning" + StatusImageUnknown Status = "ImageUnknown" StatusNone Status = "None" StatusOffline Status = "Offline" StatusPostUpgrade Status = "PostUpgrade" @@ -135,9 +128,11 @@ const ( StatusUpgradeComplete Status = "UpgradeComplete" StatusUpgradeFailed Status = "UpgradeFailed" StatusUpgradePrerequisitesCompleted Status = "UpgradePrerequisitesCompleted" + StatusUpgradingKVAIO Status = "UpgradingKVAIO" StatusValidating Status = "Validating" StatusWaitingForCloudOperator Status = "WaitingForCloudOperator" StatusWaitingForHeartbeat Status = "WaitingForHeartbeat" + StatusWaitingForKVAIO Status = "WaitingForKVAIO" ) // PossibleStatusValues returns the possible values for the Status const type. @@ -145,6 +140,13 @@ func PossibleStatusValues() []Status { return []Status{ StatusConnected, StatusConnecting, + StatusImageDeprovisioning, + StatusImageDownloaded, + StatusImageDownloading, + StatusImagePending, + StatusImageProvisioned, + StatusImageProvisioning, + StatusImageUnknown, StatusNone, StatusOffline, StatusPostUpgrade, @@ -158,8 +160,10 @@ func PossibleStatusValues() []Status { StatusUpgradeComplete, StatusUpgradeFailed, StatusUpgradePrerequisitesCompleted, + StatusUpgradingKVAIO, StatusValidating, StatusWaitingForCloudOperator, StatusWaitingForHeartbeat, + StatusWaitingForKVAIO, } } diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/models.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/models.go index 1f32cee5b290..1b4a7aa393bf 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/models.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/models.go @@ -31,7 +31,7 @@ type Appliance struct { // READ-ONLY; The name of the resource Name *string - // READ-ONLY; Metadata pertaining to creation and last modification of the resource + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -47,13 +47,10 @@ type ApplianceCredentialKubeconfig struct { Value *string } -// ApplianceListClusterCustomerUserCredentialResults - The List Cluster Customer User Credential Results appliance. -type ApplianceListClusterCustomerUserCredentialResults struct { - // READ-ONLY; The list of appliance kubeconfigs. - Kubeconfigs []*ApplianceCredentialKubeconfig - - // READ-ONLY; Map of Customer User Public and Private SSH Keys - SSHKeys map[string]*SSHKey +// ApplianceGetTelemetryConfigResult - The Get Telemetry Config Result appliance. +type ApplianceGetTelemetryConfigResult struct { + // READ-ONLY; Telemetry instrumentation key. + TelemetryInstrumentationKey *string } // ApplianceListCredentialResults - The List Cluster User Credential appliance. @@ -65,6 +62,18 @@ type ApplianceListCredentialResults struct { Kubeconfigs []*ApplianceCredentialKubeconfig } +// ApplianceListKeysResults - The List Cluster Keys Results appliance. +type ApplianceListKeysResults struct { + // READ-ONLY; Map of artifacts that contains a list of ArtifactProfile used to upload artifacts such as logs. + ArtifactProfiles map[string]*ArtifactProfile + + // READ-ONLY; The list of appliance kubeconfigs. + Kubeconfigs []*ApplianceCredentialKubeconfig + + // READ-ONLY; Map of Customer User Public, Private SSH Keys and Certificate when available. + SSHKeys map[string]*SSHKey +} + // ApplianceListResult - The List Appliances operation response. type ApplianceListResult struct { // READ-ONLY; The URL to use for getting the next set of results. @@ -121,7 +130,7 @@ type ApplianceProperties struct { // Contains infrastructure information about the Appliance InfrastructureConfig *AppliancePropertiesInfrastructureConfig - // Certificates pair used to download MSI certificate from HIS + // Certificates pair used to download MSI certificate from HIS. Can only be set once. PublicKey *string // Version of the Appliance @@ -158,6 +167,12 @@ 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 @@ -175,15 +190,14 @@ type AppliancesClientListBySubscriptionOptions struct { // placeholder for future optional parameters } -// AppliancesClientListClusterCustomerUserCredentialOptions contains the optional parameters for the AppliancesClient.ListClusterCustomerUserCredential +// AppliancesClientListClusterUserCredentialOptions contains the optional parameters for the AppliancesClient.ListClusterUserCredential // method. -type AppliancesClientListClusterCustomerUserCredentialOptions struct { +type AppliancesClientListClusterUserCredentialOptions struct { // placeholder for future optional parameters } -// AppliancesClientListClusterUserCredentialOptions contains the optional parameters for the AppliancesClient.ListClusterUserCredential -// method. -type AppliancesClientListClusterUserCredentialOptions struct { +// AppliancesClientListKeysOptions contains the optional parameters for the AppliancesClient.ListKeys method. +type AppliancesClientListKeysOptions struct { // placeholder for future optional parameters } @@ -198,38 +212,10 @@ type AppliancesClientUpdateOptions struct { // placeholder for future optional parameters } -// ErrorAdditionalInfo - The resource management error additional info. -type ErrorAdditionalInfo struct { - // READ-ONLY; The additional info. - Info any - - // READ-ONLY; The additional info type. - Type *string -} - -// ErrorDetail - The error detail. -type ErrorDetail struct { - // READ-ONLY; The error additional info. - AdditionalInfo []*ErrorAdditionalInfo - - // READ-ONLY; The error code. - Code *string - - // READ-ONLY; The error details. - Details []*ErrorDetail - - // READ-ONLY; The error message. - Message *string - - // READ-ONLY; The error target. - Target *string -} - -// ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. -// (This also follows the OData error response format.). -type ErrorResponse struct { - // The error object. - Error *ErrorDetail +// ArtifactProfile - Appliance ArtifactProfile definition. +type ArtifactProfile struct { + // READ-ONLY; Endpoint is the URL to upload artifacts to. + Endpoint *string } // HybridConnectionConfig - Contains the REP (rendezvous endpoint) and “Listener” access token from notification service (NS). @@ -265,24 +251,21 @@ type PatchableAppliance struct { Tags map[string]*string } -// Resource - Common fields that are returned in the response for all Azure Resource Manager resources -type Resource struct { - // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string +// SSHKey - Appliance SSHKey definition. +type SSHKey struct { + // READ-ONLY; Certificate associated with the public key if the key is signed. + Certificate *string - // READ-ONLY; The name of the resource - Name *string + // READ-ONLY; Certificate creation timestamp (Unix). + CreationTimeStamp *int64 - // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string -} + // READ-ONLY; Certificate expiration timestamp (Unix). + ExpirationTimeStamp *int64 -// SSHKey - Appliance SSHKey definition. -type SSHKey struct { - // User Private Key. + // READ-ONLY; Private Key. PrivateKey *string - // User Public Key. + // READ-ONLY; Public Key. PublicKey *string } @@ -349,25 +332,6 @@ type SystemData struct { LastModifiedByType *CreatedByType } -// TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' -// and a 'location' -type TrackedResource struct { - // REQUIRED; The geo-location where the resource lives - Location *string - - // Resource tags. - Tags map[string]*string - - // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string - - // READ-ONLY; The name of the resource - Name *string - - // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string -} - // UpgradeGraph - The Upgrade Graph for appliance. type UpgradeGraph struct { // The properties of supported version diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/models_serde.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/models_serde.go index 89d3b29aa55e..33a2f2daf85e 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/models_serde.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/models_serde.go @@ -102,16 +102,15 @@ func (a *ApplianceCredentialKubeconfig) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ApplianceListClusterCustomerUserCredentialResults. -func (a ApplianceListClusterCustomerUserCredentialResults) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type ApplianceGetTelemetryConfigResult. +func (a ApplianceGetTelemetryConfigResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "kubeconfigs", a.Kubeconfigs) - populate(objectMap, "sshKeys", a.SSHKeys) + populate(objectMap, "telemetryInstrumentationKey", a.TelemetryInstrumentationKey) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ApplianceListClusterCustomerUserCredentialResults. -func (a *ApplianceListClusterCustomerUserCredentialResults) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ApplianceGetTelemetryConfigResult. +func (a *ApplianceGetTelemetryConfigResult) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", a, err) @@ -119,11 +118,8 @@ func (a *ApplianceListClusterCustomerUserCredentialResults) UnmarshalJSON(data [ for key, val := range rawMsg { var err error switch key { - case "kubeconfigs": - err = unpopulate(val, "Kubeconfigs", &a.Kubeconfigs) - delete(rawMsg, key) - case "sshKeys": - err = unpopulate(val, "SSHKeys", &a.SSHKeys) + case "telemetryInstrumentationKey": + err = unpopulate(val, "TelemetryInstrumentationKey", &a.TelemetryInstrumentationKey) delete(rawMsg, key) } if err != nil { @@ -164,6 +160,41 @@ func (a *ApplianceListCredentialResults) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ApplianceListKeysResults. +func (a ApplianceListKeysResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "artifactProfiles", a.ArtifactProfiles) + populate(objectMap, "kubeconfigs", a.Kubeconfigs) + populate(objectMap, "sshKeys", a.SSHKeys) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ApplianceListKeysResults. +func (a *ApplianceListKeysResults) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "artifactProfiles": + err = unpopulate(val, "ArtifactProfiles", &a.ArtifactProfiles) + delete(rawMsg, key) + case "kubeconfigs": + err = unpopulate(val, "Kubeconfigs", &a.Kubeconfigs) + delete(rawMsg, key) + case "sshKeys": + err = unpopulate(val, "SSHKeys", &a.SSHKeys) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ApplianceListResult. func (a ApplianceListResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -378,102 +409,28 @@ func (a *AppliancePropertiesInfrastructureConfig) UnmarshalJSON(data []byte) err return nil } -// MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo. -func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populateAny(objectMap, "info", e.Info) - populate(objectMap, "type", e.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo. -func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", e, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "info": - err = unpopulate(val, "Info", &e.Info) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &e.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", e, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type ErrorDetail. -func (e ErrorDetail) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "additionalInfo", e.AdditionalInfo) - populate(objectMap, "code", e.Code) - populate(objectMap, "details", e.Details) - populate(objectMap, "message", e.Message) - populate(objectMap, "target", e.Target) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetail. -func (e *ErrorDetail) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", e, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "additionalInfo": - err = unpopulate(val, "AdditionalInfo", &e.AdditionalInfo) - delete(rawMsg, key) - case "code": - err = unpopulate(val, "Code", &e.Code) - delete(rawMsg, key) - case "details": - err = unpopulate(val, "Details", &e.Details) - delete(rawMsg, key) - case "message": - err = unpopulate(val, "Message", &e.Message) - delete(rawMsg, key) - case "target": - err = unpopulate(val, "Target", &e.Target) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", e, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type ErrorResponse. -func (e ErrorResponse) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type ArtifactProfile. +func (a ArtifactProfile) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "error", e.Error) + populate(objectMap, "endpoint", a.Endpoint) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse. -func (e *ErrorResponse) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ArtifactProfile. +func (a *ArtifactProfile) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", e, err) + return fmt.Errorf("unmarshalling type %T: %v", a, err) } for key, val := range rawMsg { var err error switch key { - case "error": - err = unpopulate(val, "Error", &e.Error) + case "endpoint": + err = unpopulate(val, "Endpoint", &a.Endpoint) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", e, err) + return fmt.Errorf("unmarshalling type %T: %v", a, err) } } return nil @@ -580,44 +537,12 @@ func (p *PatchableAppliance) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type Resource. -func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "id", r.ID) - populate(objectMap, "name", r.Name) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type Resource. -func (r *Resource) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", r, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &r.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &r.Name) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &r.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", r, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type SSHKey. func (s SSHKey) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "certificate", s.Certificate) + populate(objectMap, "creationTimeStamp", s.CreationTimeStamp) + populate(objectMap, "expirationTimeStamp", s.ExpirationTimeStamp) populate(objectMap, "privateKey", s.PrivateKey) populate(objectMap, "publicKey", s.PublicKey) return json.Marshal(objectMap) @@ -632,6 +557,15 @@ func (s *SSHKey) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "certificate": + err = unpopulate(val, "Certificate", &s.Certificate) + delete(rawMsg, key) + case "creationTimeStamp": + err = unpopulate(val, "CreationTimeStamp", &s.CreationTimeStamp) + delete(rawMsg, key) + case "expirationTimeStamp": + err = unpopulate(val, "ExpirationTimeStamp", &s.ExpirationTimeStamp) + delete(rawMsg, key) case "privateKey": err = unpopulate(val, "PrivateKey", &s.PrivateKey) delete(rawMsg, key) @@ -825,49 +759,6 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type TrackedResource. -func (t TrackedResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "id", t.ID) - populate(objectMap, "location", t.Location) - populate(objectMap, "name", t.Name) - populate(objectMap, "tags", t.Tags) - populate(objectMap, "type", t.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResource. -func (t *TrackedResource) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &t.ID) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &t.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &t.Name) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &t.Tags) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &t.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type UpgradeGraph. func (u UpgradeGraph) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -944,16 +835,6 @@ func populate(m map[string]any, k string, v any) { } } -func populateAny(m map[string]any, k string, v any) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else { - m[k] = v - } -} - func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/response_types.go b/sdk/resourcemanager/resourceconnector/armresourceconnector/response_types.go index cdf653ecbc30..6b3369d11f76 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/response_types.go +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/response_types.go @@ -24,6 +24,11 @@ type AppliancesClientGetResponse struct { Appliance } +// AppliancesClientGetTelemetryConfigResponse contains the response from method AppliancesClient.GetTelemetryConfig. +type AppliancesClientGetTelemetryConfigResponse struct { + ApplianceGetTelemetryConfigResult +} + // AppliancesClientGetUpgradeGraphResponse contains the response from method AppliancesClient.GetUpgradeGraph. type AppliancesClientGetUpgradeGraphResponse struct { UpgradeGraph @@ -39,16 +44,16 @@ type AppliancesClientListBySubscriptionResponse struct { ApplianceListResult } -// AppliancesClientListClusterCustomerUserCredentialResponse contains the response from method AppliancesClient.ListClusterCustomerUserCredential. -type AppliancesClientListClusterCustomerUserCredentialResponse struct { - ApplianceListClusterCustomerUserCredentialResults -} - // AppliancesClientListClusterUserCredentialResponse contains the response from method AppliancesClient.ListClusterUserCredential. type AppliancesClientListClusterUserCredentialResponse struct { ApplianceListCredentialResults } +// AppliancesClientListKeysResponse contains the response from method AppliancesClient.ListKeys. +type AppliancesClientListKeysResponse struct { + ApplianceListKeysResults +} + // AppliancesClientListOperationsResponse contains the response from method AppliancesClient.NewListOperationsPager. type AppliancesClientListOperationsResponse struct { ApplianceOperationsList