diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/CHANGELOG.md b/sdk/resourcemanager/healthcareapis/armhealthcareapis/CHANGELOG.md index 33df843faf2b..3e5a95a5559d 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/CHANGELOG.md +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/CHANGELOG.md @@ -1,5 +1,26 @@ # Release History +## 2.0.0 (2023-12-22) +### Breaking Changes + +- Struct `FhirServiceAccessPolicyEntry` has been removed +- Field `AccessPolicies` of struct `FhirServiceProperties` has been removed + +### Features Added + +- New struct `CorsConfiguration` +- New struct `Encryption` +- New struct `EncryptionCustomerManagedKeyEncryption` +- New struct `FhirServiceImportConfiguration` +- New struct `ImplementationGuidesConfiguration` +- New struct `ServiceImportConfigurationInfo` +- New field `CorsConfiguration`, `Encryption`, `EventState` in struct `DicomServiceProperties` +- New field `Encryption`, `ImplementationGuidesConfiguration`, `ImportConfiguration` in struct `FhirServiceProperties` +- New field `EnableRegionalMdmAccount`, `IsInternal`, `MetricFilterPattern`, `ResourceIDDimensionNameOverride`, `SourceMdmAccount` in struct `MetricSpecification` +- New field `CrossTenantCmkApplicationID` in struct `ServiceCosmosDbConfigurationInfo` +- New field `ImportConfiguration` in struct `ServicesProperties` + + ## 1.2.0 (2023-11-24) ### Features Added diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/autorest.md b/sdk/resourcemanager/healthcareapis/armhealthcareapis/autorest.md index 721e950d2e5e..c330bbc4d3ee 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/autorest.md +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.2.0 -tag: package-2021-11 +module-version: 2.0.0 +tag: package-2023-11 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/client_factory.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/client_factory.go index bbd1a52b06ff..19280abdb216 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/client_factory.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/client_factory.go @@ -23,7 +23,7 @@ type ClientFactory struct { // NewClientFactory creates a new instance of ClientFactory with the specified values. // The parameter values will be propagated to any client created from this factory. -// - subscriptionID - The subscription identifier. +// - subscriptionID - The ID of the target subscription. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/constants.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/constants.go index 66ff324d6f33..683c8abd1f60 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/constants.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/constants.go @@ -10,7 +10,7 @@ package armhealthcareapis const ( moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" - moduleVersion = "v1.2.0" + moduleVersion = "v2.0.0" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/dicomservices_client.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/dicomservices_client.go index 6810cf3c34b5..de98ac2eb048 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/dicomservices_client.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/dicomservices_client.go @@ -28,7 +28,7 @@ type DicomServicesClient struct { } // NewDicomServicesClient creates a new instance of DicomServicesClient with the specified values. -// - subscriptionID - The subscription identifier. +// - subscriptionID - The ID of the target subscription. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewDicomServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DicomServicesClient, error) { @@ -46,7 +46,7 @@ func NewDicomServicesClient(subscriptionID string, credential azcore.TokenCreden // BeginCreateOrUpdate - Creates or updates a DICOM Service resource with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - dicomServiceName - The name of DICOM Service resource. @@ -73,7 +73,7 @@ func (client *DicomServicesClient) BeginCreateOrUpdate(ctx context.Context, reso // CreateOrUpdate - Creates or updates a DICOM Service resource with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *DicomServicesClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, dicomServiceName string, dicomservice DicomService, options *DicomServicesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "DicomServicesClient.BeginCreateOrUpdate" @@ -119,7 +119,7 @@ func (client *DicomServicesClient) createOrUpdateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, dicomservice); err != nil { @@ -131,7 +131,7 @@ func (client *DicomServicesClient) createOrUpdateCreateRequest(ctx context.Conte // BeginDelete - Deletes a DICOM Service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - dicomServiceName - The name of DICOM Service resource. // - workspaceName - The name of workspace resource. @@ -157,7 +157,7 @@ func (client *DicomServicesClient) BeginDelete(ctx context.Context, resourceGrou // Delete - Deletes a DICOM Service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *DicomServicesClient) deleteOperation(ctx context.Context, resourceGroupName string, dicomServiceName string, workspaceName string, options *DicomServicesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "DicomServicesClient.BeginDelete" @@ -203,7 +203,7 @@ func (client *DicomServicesClient) deleteCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -212,7 +212,7 @@ func (client *DicomServicesClient) deleteCreateRequest(ctx context.Context, reso // Get - Gets the properties of the specified DICOM Service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - dicomServiceName - The name of DICOM Service resource. @@ -263,7 +263,7 @@ func (client *DicomServicesClient) getCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -280,7 +280,7 @@ func (client *DicomServicesClient) getHandleResponse(resp *http.Response) (Dicom // NewListByWorkspacePager - Lists all DICOM Services for the given workspace // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - options - DicomServicesClientListByWorkspaceOptions contains the optional parameters for the DicomServicesClient.NewListByWorkspacePager @@ -328,7 +328,7 @@ func (client *DicomServicesClient) listByWorkspaceCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -346,7 +346,7 @@ func (client *DicomServicesClient) listByWorkspaceHandleResponse(resp *http.Resp // BeginUpdate - Patch DICOM Service details. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - dicomServiceName - The name of DICOM Service resource. // - workspaceName - The name of workspace resource. @@ -373,7 +373,7 @@ func (client *DicomServicesClient) BeginUpdate(ctx context.Context, resourceGrou // Update - Patch DICOM Service details. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *DicomServicesClient) update(ctx context.Context, resourceGroupName string, dicomServiceName string, workspaceName string, dicomservicePatchResource DicomServicePatchResource, options *DicomServicesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "DicomServicesClient.BeginUpdate" @@ -419,7 +419,7 @@ func (client *DicomServicesClient) updateCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, dicomservicePatchResource); err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/dicomservices_client_example_test.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/dicomservices_client_example_test.go index cfabddb91c9a..d344497f6f0f 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/dicomservices_client_example_test.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/dicomservices_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/dicomservices/DicomServices_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/dicomservices/DicomServices_List.json func ExampleDicomServicesClient_NewListByWorkspacePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -43,6 +43,11 @@ func ExampleDicomServicesClient_NewListByWorkspacePager() { // page.DicomServiceCollection = armhealthcareapis.DicomServiceCollection{ // Value: []*armhealthcareapis.DicomService{ // { + // Identity: &armhealthcareapis.ServiceManagedIdentityIdentity{ + // Type: to.Ptr(armhealthcareapis.ServiceManagedIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("2f1f372f-edcf-43f5-aedb-173da3cc5c1e"), + // TenantID: to.Ptr("abfde7b2-df0f-47e6-aabf-2462b07508dc"), + // }, // Name: to.Ptr("blue"), // Type: to.Ptr("Microsoft.HealthcareApis/workspaces/dicomservices"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/testRG/providers/Microsoft.HealthcareApis/workspaces/workspace1/dicomservices/blue"), @@ -53,30 +58,62 @@ func ExampleDicomServicesClient_NewListByWorkspacePager() { // to.Ptr("https://azurehealthcareapis.com")}, // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // }, - // ProvisioningState: to.Ptr(armhealthcareapis.ProvisioningStateSucceeded), - // ServiceURL: to.Ptr("https://workspace1-blue.dicom.azurehealthcareapis.com"), - // }, - // }, - // { - // Name: to.Ptr("red"), - // Type: to.Ptr("Microsoft.HealthcareApis/workspaces/dicomservices"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/testRG/providers/Microsoft.HealthcareApis/workspaces/workspace1/dicomservices/red"), - // Properties: &armhealthcareapis.DicomServiceProperties{ - // AuthenticationConfiguration: &armhealthcareapis.DicomServiceAuthenticationConfiguration{ - // Audiences: []*string{ - // to.Ptr("https://azurehealthcareapis.com/"), - // to.Ptr("https://azurehealthcareapis.com")}, - // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), + // CorsConfiguration: &armhealthcareapis.CorsConfiguration{ + // AllowCredentials: to.Ptr(false), + // Headers: []*string{ + // to.Ptr("*")}, + // MaxAge: to.Ptr[int32](1440), + // Methods: []*string{ + // to.Ptr("DELETE"), + // to.Ptr("GET"), + // to.Ptr("OPTIONS"), + // to.Ptr("PATCH"), + // to.Ptr("POST"), + // to.Ptr("PUT")}, + // Origins: []*string{ + // to.Ptr("*")}, + // }, + // Encryption: &armhealthcareapis.Encryption{ + // CustomerManagedKeyEncryption: &armhealthcareapis.EncryptionCustomerManagedKeyEncryption{ + // KeyEncryptionKeyURL: to.Ptr("https://mykeyvault.vault.azure.net/keys/myEncryptionKey/myKeyVersion"), + // }, + // }, + // EventState: to.Ptr(armhealthcareapis.ServiceEventStateDisabled), + // ProvisioningState: to.Ptr(armhealthcareapis.ProvisioningStateSucceeded), + // ServiceURL: to.Ptr("https://workspace1-blue.dicom.azurehealthcareapis.com"), + // }, // }, - // ProvisioningState: to.Ptr(armhealthcareapis.ProvisioningStateSucceeded), - // ServiceURL: to.Ptr("https://workspace1-red.dicom.azurehealthcareapis.com"), - // }, - // }}, - // } + // { + // Identity: &armhealthcareapis.ServiceManagedIdentityIdentity{ + // Type: to.Ptr(armhealthcareapis.ServiceManagedIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("2f1f372f-edcf-43f5-aedb-173da3cc5c1e"), + // TenantID: to.Ptr("abfde7b2-df0f-47e6-aabf-2462b07508dc"), + // }, + // Name: to.Ptr("red"), + // Type: to.Ptr("Microsoft.HealthcareApis/workspaces/dicomservices"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/testRG/providers/Microsoft.HealthcareApis/workspaces/workspace1/dicomservices/red"), + // Properties: &armhealthcareapis.DicomServiceProperties{ + // AuthenticationConfiguration: &armhealthcareapis.DicomServiceAuthenticationConfiguration{ + // Audiences: []*string{ + // to.Ptr("https://azurehealthcareapis.com/"), + // to.Ptr("https://azurehealthcareapis.com")}, + // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), + // }, + // Encryption: &armhealthcareapis.Encryption{ + // CustomerManagedKeyEncryption: &armhealthcareapis.EncryptionCustomerManagedKeyEncryption{ + // KeyEncryptionKeyURL: to.Ptr("https://mykeyvault.vault.azure.net/keys/myEncryptionKey/myKeyVersion"), + // }, + // }, + // EventState: to.Ptr(armhealthcareapis.ServiceEventStateDisabled), + // ProvisioningState: to.Ptr(armhealthcareapis.ProvisioningStateSucceeded), + // ServiceURL: to.Ptr("https://workspace1-red.dicom.azurehealthcareapis.com"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/dicomservices/DicomServices_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/dicomservices/DicomServices_Get.json func ExampleDicomServicesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -95,6 +132,11 @@ func ExampleDicomServicesClient_Get() { _ = 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.DicomService = armhealthcareapis.DicomService{ + // Identity: &armhealthcareapis.ServiceManagedIdentityIdentity{ + // Type: to.Ptr(armhealthcareapis.ServiceManagedIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("2f1f372f-edcf-43f5-aedb-173da3cc5c1e"), + // TenantID: to.Ptr("abfde7b2-df0f-47e6-aabf-2462b07508dc"), + // }, // Name: to.Ptr("blue"), // Type: to.Ptr("Microsoft.HealthcareApis/workspaces/dicomservices"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/testRG/providers/Microsoft.HealthcareApis/workspaces/workspace1/dicomservices/blue"), @@ -105,13 +147,34 @@ func ExampleDicomServicesClient_Get() { // to.Ptr("https://azurehealthcareapis.com")}, // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // }, - // ProvisioningState: to.Ptr(armhealthcareapis.ProvisioningStateSucceeded), - // ServiceURL: to.Ptr("https://workspace1-blue.dicom.azurehealthcareapis.com"), - // }, - // } + // CorsConfiguration: &armhealthcareapis.CorsConfiguration{ + // AllowCredentials: to.Ptr(false), + // Headers: []*string{ + // to.Ptr("*")}, + // MaxAge: to.Ptr[int32](1440), + // Methods: []*string{ + // to.Ptr("DELETE"), + // to.Ptr("GET"), + // to.Ptr("OPTIONS"), + // to.Ptr("PATCH"), + // to.Ptr("POST"), + // to.Ptr("PUT")}, + // Origins: []*string{ + // to.Ptr("*")}, + // }, + // Encryption: &armhealthcareapis.Encryption{ + // CustomerManagedKeyEncryption: &armhealthcareapis.EncryptionCustomerManagedKeyEncryption{ + // KeyEncryptionKeyURL: to.Ptr("https://mykeyvault.vault.azure.net/keys/myEncryptionKey/myKeyVersion"), + // }, + // }, + // EventState: to.Ptr(armhealthcareapis.ServiceEventStateDisabled), + // ProvisioningState: to.Ptr(armhealthcareapis.ProvisioningStateSucceeded), + // ServiceURL: to.Ptr("https://workspace1-blue.dicom.azurehealthcareapis.com"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/dicomservices/DicomServices_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/dicomservices/DicomServices_Create.json func ExampleDicomServicesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -137,6 +200,13 @@ func ExampleDicomServicesClient_BeginCreateOrUpdate() { _ = 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.DicomService = armhealthcareapis.DicomService{ + // Identity: &armhealthcareapis.ServiceManagedIdentityIdentity{ + // Type: to.Ptr(armhealthcareapis.ServiceManagedIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armhealthcareapis.UserAssignedIdentity{ + // "/subscriptions/subid/resourcegroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-mi": &armhealthcareapis.UserAssignedIdentity{ + // }, + // }, + // }, // Name: to.Ptr("blue"), // Type: to.Ptr("Microsoft.HealthcareApis/workspaces/dicomservices"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/testRG/providers/Microsoft.HealthcareApis/workspaces/workspace1/dicomservices/blue"), @@ -148,12 +218,33 @@ func ExampleDicomServicesClient_BeginCreateOrUpdate() { // to.Ptr("https://azurehealthcareapis.com")}, // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // }, - // ProvisioningState: to.Ptr(armhealthcareapis.ProvisioningStateSucceeded), - // }, - // } + // CorsConfiguration: &armhealthcareapis.CorsConfiguration{ + // AllowCredentials: to.Ptr(false), + // Headers: []*string{ + // to.Ptr("*")}, + // MaxAge: to.Ptr[int32](1440), + // Methods: []*string{ + // to.Ptr("DELETE"), + // to.Ptr("GET"), + // to.Ptr("OPTIONS"), + // to.Ptr("PATCH"), + // to.Ptr("POST"), + // to.Ptr("PUT")}, + // Origins: []*string{ + // to.Ptr("*")}, + // }, + // Encryption: &armhealthcareapis.Encryption{ + // CustomerManagedKeyEncryption: &armhealthcareapis.EncryptionCustomerManagedKeyEncryption{ + // KeyEncryptionKeyURL: to.Ptr("https://mykeyvault.vault.azure.net/keys/myEncryptionKey/myKeyVersion"), + // }, + // }, + // EventState: to.Ptr(armhealthcareapis.ServiceEventStateDisabled), + // ProvisioningState: to.Ptr(armhealthcareapis.ProvisioningStateSucceeded), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/dicomservices/DicomServices_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/dicomservices/DicomServices_Patch.json func ExampleDicomServicesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -180,6 +271,11 @@ func ExampleDicomServicesClient_BeginUpdate() { _ = 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.DicomService = armhealthcareapis.DicomService{ + // Identity: &armhealthcareapis.ServiceManagedIdentityIdentity{ + // Type: to.Ptr(armhealthcareapis.ServiceManagedIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("2f1f372f-edcf-43f5-aedb-173da3cc5c1e"), + // TenantID: to.Ptr("abfde7b2-df0f-47e6-aabf-2462b07508dc"), + // }, // Name: to.Ptr("blue"), // Type: to.Ptr("Microsoft.HealthcareApis/workspaces/dicomservices"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/testRG/providers/Microsoft.HealthcareApis/workspaces/workspace1/dicomservices/blue"), @@ -193,13 +289,34 @@ func ExampleDicomServicesClient_BeginUpdate() { // to.Ptr("https://azurehealthcareapis.com")}, // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // }, - // ProvisioningState: to.Ptr(armhealthcareapis.ProvisioningStateSucceeded), - // ServiceURL: to.Ptr("https://workspace1-blue.dicom.azurehealthcareapis.com"), - // }, - // } + // CorsConfiguration: &armhealthcareapis.CorsConfiguration{ + // AllowCredentials: to.Ptr(false), + // Headers: []*string{ + // to.Ptr("*")}, + // MaxAge: to.Ptr[int32](1440), + // Methods: []*string{ + // to.Ptr("DELETE"), + // to.Ptr("GET"), + // to.Ptr("OPTIONS"), + // to.Ptr("PATCH"), + // to.Ptr("POST"), + // to.Ptr("PUT")}, + // Origins: []*string{ + // to.Ptr("*")}, + // }, + // Encryption: &armhealthcareapis.Encryption{ + // CustomerManagedKeyEncryption: &armhealthcareapis.EncryptionCustomerManagedKeyEncryption{ + // KeyEncryptionKeyURL: to.Ptr("https://mykeyvault.vault.azure.net/keys/myEncryptionKey/myKeyVersion"), + // }, + // }, + // EventState: to.Ptr(armhealthcareapis.ServiceEventStateDisabled), + // ProvisioningState: to.Ptr(armhealthcareapis.ProvisioningStateSucceeded), + // ServiceURL: to.Ptr("https://workspace1-blue.dicom.azurehealthcareapis.com"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/dicomservices/DicomServices_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/dicomservices/DicomServices_Delete.json func ExampleDicomServicesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/dicomservices_server.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/dicomservices_server.go index 575059ad52af..64e1254a01e2 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/dicomservices_server.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/dicomservices_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/fhirdestinations_server.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/fhirdestinations_server.go index 3322646025ce..0987cfd6c193 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/fhirdestinations_server.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/fhirdestinations_server.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/fhirservices_server.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/fhirservices_server.go index 64536210fcc1..0764a78dbf07 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/fhirservices_server.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/fhirservices_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/iotconnectorfhirdestination_server.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/iotconnectorfhirdestination_server.go index 6855525e8d8d..046d577a12c1 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/iotconnectorfhirdestination_server.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/iotconnectorfhirdestination_server.go @@ -15,7 +15,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/iotconnectors_server.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/iotconnectors_server.go index 9852f0767f61..fe5004371847 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/iotconnectors_server.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/iotconnectors_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/operationresults_server.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/operationresults_server.go index edc6a478bc80..a2e26386be5c 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/operationresults_server.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/operationresults_server.go @@ -15,7 +15,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/operations_server.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/operations_server.go index 157f99b6ad12..b3e638f833e5 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/operations_server.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/operations_server.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" "net/http" ) diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/privateendpointconnections_server.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/privateendpointconnections_server.go index 4b822b12a955..6b06281c4c1e 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/privateendpointconnections_server.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/privateendpointconnections_server.go @@ -15,7 +15,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/privatelinkresources_server.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/privatelinkresources_server.go index 9188652057e3..387164abfe9c 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/privatelinkresources_server.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/privatelinkresources_server.go @@ -15,7 +15,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/services_server.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/services_server.go index 8eb224ca6ca5..eb593cbb8051 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/services_server.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/services_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/workspaceprivateendpointconnections_server.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/workspaceprivateendpointconnections_server.go index b7a0326ef15f..6a9c4694e2a0 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/workspaceprivateendpointconnections_server.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/workspaceprivateendpointconnections_server.go @@ -15,7 +15,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/workspaceprivatelinkresources_server.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/workspaceprivatelinkresources_server.go index 4926990a79e8..ff0832ec11ed 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/workspaceprivatelinkresources_server.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/workspaceprivatelinkresources_server.go @@ -15,7 +15,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/workspaces_server.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/workspaces_server.go index 92c53eb6a337..6d8697485670 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/workspaces_server.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fake/workspaces_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirdestinations_client.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirdestinations_client.go index f21e428a7593..237662cc6d7b 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirdestinations_client.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirdestinations_client.go @@ -28,7 +28,7 @@ type FhirDestinationsClient struct { } // NewFhirDestinationsClient creates a new instance of FhirDestinationsClient with the specified values. -// - subscriptionID - The subscription identifier. +// - subscriptionID - The ID of the target subscription. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewFhirDestinationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FhirDestinationsClient, error) { @@ -45,7 +45,7 @@ func NewFhirDestinationsClient(subscriptionID string, credential azcore.TokenCre // NewListByIotConnectorPager - Lists all FHIR destinations for the given IoT Connector // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - iotConnectorName - The name of IoT Connector resource. @@ -98,7 +98,7 @@ func (client *FhirDestinationsClient) listByIotConnectorCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirdestinations_client_example_test.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirdestinations_client_example_test.go index b0df83822327..18de63d83108 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirdestinations_client_example_test.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirdestinations_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_fhirdestination_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/iotconnectors/iotconnector_fhirdestination_List.json func ExampleFhirDestinationsClient_NewListByIotConnectorPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirservices_client.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirservices_client.go index 4a4ffd479513..f8d61a618bf1 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirservices_client.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirservices_client.go @@ -28,7 +28,7 @@ type FhirServicesClient struct { } // NewFhirServicesClient creates a new instance of FhirServicesClient with the specified values. -// - subscriptionID - The subscription identifier. +// - subscriptionID - The ID of the target subscription. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewFhirServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FhirServicesClient, error) { @@ -46,7 +46,7 @@ func NewFhirServicesClient(subscriptionID string, credential azcore.TokenCredent // BeginCreateOrUpdate - Creates or updates a FHIR Service resource with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - fhirServiceName - The name of FHIR Service resource. @@ -73,7 +73,7 @@ func (client *FhirServicesClient) BeginCreateOrUpdate(ctx context.Context, resou // CreateOrUpdate - Creates or updates a FHIR Service resource with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *FhirServicesClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, fhirServiceName string, fhirservice FhirService, options *FhirServicesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "FhirServicesClient.BeginCreateOrUpdate" @@ -119,7 +119,7 @@ func (client *FhirServicesClient) createOrUpdateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, fhirservice); err != nil { @@ -131,7 +131,7 @@ func (client *FhirServicesClient) createOrUpdateCreateRequest(ctx context.Contex // BeginDelete - Deletes a FHIR Service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - fhirServiceName - The name of FHIR Service resource. // - workspaceName - The name of workspace resource. @@ -157,7 +157,7 @@ func (client *FhirServicesClient) BeginDelete(ctx context.Context, resourceGroup // Delete - Deletes a FHIR Service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *FhirServicesClient) deleteOperation(ctx context.Context, resourceGroupName string, fhirServiceName string, workspaceName string, options *FhirServicesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "FhirServicesClient.BeginDelete" @@ -203,7 +203,7 @@ func (client *FhirServicesClient) deleteCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -212,7 +212,7 @@ func (client *FhirServicesClient) deleteCreateRequest(ctx context.Context, resou // Get - Gets the properties of the specified FHIR Service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - fhirServiceName - The name of FHIR Service resource. @@ -263,7 +263,7 @@ func (client *FhirServicesClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -280,7 +280,7 @@ func (client *FhirServicesClient) getHandleResponse(resp *http.Response) (FhirSe // NewListByWorkspacePager - Lists all FHIR Services for the given workspace // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - options - FhirServicesClientListByWorkspaceOptions contains the optional parameters for the FhirServicesClient.NewListByWorkspacePager @@ -328,7 +328,7 @@ func (client *FhirServicesClient) listByWorkspaceCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -346,7 +346,7 @@ func (client *FhirServicesClient) listByWorkspaceHandleResponse(resp *http.Respo // BeginUpdate - Patch FHIR Service details. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - fhirServiceName - The name of FHIR Service resource. // - workspaceName - The name of workspace resource. @@ -373,7 +373,7 @@ func (client *FhirServicesClient) BeginUpdate(ctx context.Context, resourceGroup // Update - Patch FHIR Service details. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *FhirServicesClient) update(ctx context.Context, resourceGroupName string, fhirServiceName string, workspaceName string, fhirservicePatchResource FhirServicePatchResource, options *FhirServicesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "FhirServicesClient.BeginUpdate" @@ -419,7 +419,7 @@ func (client *FhirServicesClient) updateCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, fhirservicePatchResource); err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirservices_client_example_test.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirservices_client_example_test.go index c3fdbdc9115c..ec27243a0291 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirservices_client_example_test.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/fhirservices_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/fhirservices/FhirServices_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/fhirservices/FhirServices_List.json func ExampleFhirServicesClient_NewListByWorkspacePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -62,7 +62,7 @@ func ExampleFhirServicesClient_NewListByWorkspacePager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/fhirservices/FhirServices_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/fhirservices/FhirServices_Get.json func ExampleFhirServicesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -81,16 +81,57 @@ func ExampleFhirServicesClient_Get() { _ = 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.FhirService = armhealthcareapis.FhirService{ + // Identity: &armhealthcareapis.ServiceManagedIdentityIdentity{ + // Type: to.Ptr(armhealthcareapis.ServiceManagedIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("2f1f372f-edcf-43f5-aedb-173da3cc5c1e"), + // TenantID: to.Ptr("abfde7b2-df0f-47e6-aabf-2462b07508dc"), + // }, // Name: to.Ptr("fhirservices1"), // Type: to.Ptr("Microsoft.HealthcareApis/workspaces/fhirservices"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/testRG/providers/Microsoft.HealthcareApis/workspaces/workspace1/fhirservices/fhirservices1"), // Properties: &armhealthcareapis.FhirServiceProperties{ - // ProvisioningState: to.Ptr(armhealthcareapis.ProvisioningStateSucceeded), - // }, - // } + // AuthenticationConfiguration: &armhealthcareapis.FhirServiceAuthenticationConfiguration{ + // Audience: to.Ptr("https://azurehealthcareapis.com"), + // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), + // SmartProxyEnabled: to.Ptr(true), + // }, + // CorsConfiguration: &armhealthcareapis.FhirServiceCorsConfiguration{ + // AllowCredentials: to.Ptr(false), + // Headers: []*string{ + // to.Ptr("*")}, + // MaxAge: to.Ptr[int32](1440), + // Methods: []*string{ + // to.Ptr("DELETE"), + // to.Ptr("GET"), + // to.Ptr("OPTIONS"), + // to.Ptr("PATCH"), + // to.Ptr("POST"), + // to.Ptr("PUT")}, + // Origins: []*string{ + // to.Ptr("*")}, + // }, + // Encryption: &armhealthcareapis.Encryption{ + // CustomerManagedKeyEncryption: &armhealthcareapis.EncryptionCustomerManagedKeyEncryption{ + // KeyEncryptionKeyURL: to.Ptr("https://mykeyvault.vault.azure.net/keys/myEncryptionKey/myKeyVersion"), + // }, + // }, + // ExportConfiguration: &armhealthcareapis.FhirServiceExportConfiguration{ + // StorageAccountName: to.Ptr("existingStorageAccount"), + // }, + // ImplementationGuidesConfiguration: &armhealthcareapis.ImplementationGuidesConfiguration{ + // UsCoreMissingData: to.Ptr(false), + // }, + // ImportConfiguration: &armhealthcareapis.FhirServiceImportConfiguration{ + // Enabled: to.Ptr(false), + // InitialImportMode: to.Ptr(false), + // IntegrationDataStore: to.Ptr("existingStorageAccount"), + // }, + // ProvisioningState: to.Ptr(armhealthcareapis.ProvisioningStateSucceeded), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/fhirservices/FhirServices_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/fhirservices/FhirServices_Create.json func ExampleFhirServicesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -103,7 +144,10 @@ func ExampleFhirServicesClient_BeginCreateOrUpdate() { } poller, err := clientFactory.NewFhirServicesClient().BeginCreateOrUpdate(ctx, "testRG", "workspace1", "fhirservice1", armhealthcareapis.FhirService{ Identity: &armhealthcareapis.ServiceManagedIdentityIdentity{ - Type: to.Ptr(armhealthcareapis.ServiceManagedIdentityTypeSystemAssigned), + Type: to.Ptr(armhealthcareapis.ServiceManagedIdentityTypeUserAssigned), + UserAssignedIdentities: map[string]*armhealthcareapis.UserAssignedIdentity{ + "/subscriptions/subid/resourcegroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-mi": {}, + }, }, Location: to.Ptr("westus"), Tags: map[string]*string{ @@ -113,13 +157,6 @@ func ExampleFhirServicesClient_BeginCreateOrUpdate() { }, Kind: to.Ptr(armhealthcareapis.FhirServiceKindFhirR4), Properties: &armhealthcareapis.FhirServiceProperties{ - AccessPolicies: []*armhealthcareapis.FhirServiceAccessPolicyEntry{ - { - ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), - }, - { - ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), - }}, AcrConfiguration: &armhealthcareapis.FhirServiceAcrConfiguration{ LoginServers: []*string{ to.Ptr("test1.azurecr.io")}, @@ -144,9 +181,22 @@ func ExampleFhirServicesClient_BeginCreateOrUpdate() { Origins: []*string{ to.Ptr("*")}, }, + Encryption: &armhealthcareapis.Encryption{ + CustomerManagedKeyEncryption: &armhealthcareapis.EncryptionCustomerManagedKeyEncryption{ + KeyEncryptionKeyURL: to.Ptr("https://mykeyvault.vault.azure.net/keys/myEncryptionKey/myKeyVersion"), + }, + }, ExportConfiguration: &armhealthcareapis.FhirServiceExportConfiguration{ StorageAccountName: to.Ptr("existingStorageAccount"), }, + ImplementationGuidesConfiguration: &armhealthcareapis.ImplementationGuidesConfiguration{ + UsCoreMissingData: to.Ptr(false), + }, + ImportConfiguration: &armhealthcareapis.FhirServiceImportConfiguration{ + Enabled: to.Ptr(false), + InitialImportMode: to.Ptr(false), + IntegrationDataStore: to.Ptr("existingStorageAccount"), + }, }, }, nil) if err != nil { @@ -160,6 +210,13 @@ func ExampleFhirServicesClient_BeginCreateOrUpdate() { _ = 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.FhirService = armhealthcareapis.FhirService{ + // Identity: &armhealthcareapis.ServiceManagedIdentityIdentity{ + // Type: to.Ptr(armhealthcareapis.ServiceManagedIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armhealthcareapis.UserAssignedIdentity{ + // "/subscriptions/subid/resourcegroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-mi": &armhealthcareapis.UserAssignedIdentity{ + // }, + // }, + // }, // Name: to.Ptr("fhirservice1"), // Type: to.Ptr("Microsoft.HealthcareApis/workspaces/fhirservices"), // Etag: to.Ptr("etagvalue"), @@ -172,13 +229,6 @@ func ExampleFhirServicesClient_BeginCreateOrUpdate() { // }, // Kind: to.Ptr(armhealthcareapis.FhirServiceKindFhirR4), // Properties: &armhealthcareapis.FhirServiceProperties{ - // AccessPolicies: []*armhealthcareapis.FhirServiceAccessPolicyEntry{ - // { - // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), - // }, - // { - // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), - // }}, // AuthenticationConfiguration: &armhealthcareapis.FhirServiceAuthenticationConfiguration{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), @@ -199,16 +249,29 @@ func ExampleFhirServicesClient_BeginCreateOrUpdate() { // Origins: []*string{ // to.Ptr("*")}, // }, + // Encryption: &armhealthcareapis.Encryption{ + // CustomerManagedKeyEncryption: &armhealthcareapis.EncryptionCustomerManagedKeyEncryption{ + // KeyEncryptionKeyURL: to.Ptr("https://mykeyvault.vault.azure.net/keys/myEncryptionKey/myKeyVersion"), + // }, + // }, // EventState: to.Ptr(armhealthcareapis.ServiceEventStateDisabled), // ExportConfiguration: &armhealthcareapis.FhirServiceExportConfiguration{ // StorageAccountName: to.Ptr("existingStorageAccount"), // }, + // ImplementationGuidesConfiguration: &armhealthcareapis.ImplementationGuidesConfiguration{ + // UsCoreMissingData: to.Ptr(false), + // }, + // ImportConfiguration: &armhealthcareapis.FhirServiceImportConfiguration{ + // Enabled: to.Ptr(false), + // InitialImportMode: to.Ptr(false), + // IntegrationDataStore: to.Ptr("existingStorageAccount"), + // }, // ProvisioningState: to.Ptr(armhealthcareapis.ProvisioningStateSucceeded), // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/fhirservices/FhirServices_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/fhirservices/FhirServices_Patch.json func ExampleFhirServicesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -247,7 +310,7 @@ func ExampleFhirServicesClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/fhirservices/FhirServices_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/fhirservices/FhirServices_Delete.json func ExampleFhirServicesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/go.mod b/sdk/resourcemanager/healthcareapis/armhealthcareapis/go.mod index 975ff7d3df1f..5bf356def8fa 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/go.mod +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/go.mod @@ -1,4 +1,4 @@ -module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2 go 1.18 diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectorfhirdestination_client.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectorfhirdestination_client.go index 5665f124fb7b..beb3af2a146f 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectorfhirdestination_client.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectorfhirdestination_client.go @@ -28,7 +28,7 @@ type IotConnectorFhirDestinationClient struct { } // NewIotConnectorFhirDestinationClient creates a new instance of IotConnectorFhirDestinationClient with the specified values. -// - subscriptionID - The subscription identifier. +// - subscriptionID - The ID of the target subscription. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewIotConnectorFhirDestinationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IotConnectorFhirDestinationClient, error) { @@ -46,7 +46,7 @@ func NewIotConnectorFhirDestinationClient(subscriptionID string, credential azco // BeginCreateOrUpdate - Creates or updates an IoT Connector FHIR destination resource with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - iotConnectorName - The name of IoT Connector resource. @@ -74,7 +74,7 @@ func (client *IotConnectorFhirDestinationClient) BeginCreateOrUpdate(ctx context // CreateOrUpdate - Creates or updates an IoT Connector FHIR destination resource with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *IotConnectorFhirDestinationClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, iotConnectorName string, fhirDestinationName string, iotFhirDestination IotFhirDestination, options *IotConnectorFhirDestinationClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "IotConnectorFhirDestinationClient.BeginCreateOrUpdate" @@ -124,7 +124,7 @@ func (client *IotConnectorFhirDestinationClient) createOrUpdateCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, iotFhirDestination); err != nil { @@ -136,7 +136,7 @@ func (client *IotConnectorFhirDestinationClient) createOrUpdateCreateRequest(ctx // BeginDelete - Deletes an IoT Connector FHIR destination. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - iotConnectorName - The name of IoT Connector resource. @@ -163,7 +163,7 @@ func (client *IotConnectorFhirDestinationClient) BeginDelete(ctx context.Context // Delete - Deletes an IoT Connector FHIR destination. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *IotConnectorFhirDestinationClient) deleteOperation(ctx context.Context, resourceGroupName string, workspaceName string, iotConnectorName string, fhirDestinationName string, options *IotConnectorFhirDestinationClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "IotConnectorFhirDestinationClient.BeginDelete" @@ -213,7 +213,7 @@ func (client *IotConnectorFhirDestinationClient) deleteCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -222,7 +222,7 @@ func (client *IotConnectorFhirDestinationClient) deleteCreateRequest(ctx context // Get - Gets the properties of the specified Iot Connector FHIR destination. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - iotConnectorName - The name of IoT Connector resource. @@ -279,7 +279,7 @@ func (client *IotConnectorFhirDestinationClient) getCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectorfhirdestination_client_example_test.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectorfhirdestination_client_example_test.go index 4fc794313dee..ab2852afa7df 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectorfhirdestination_client_example_test.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectorfhirdestination_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_fhirdestination_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/iotconnectors/iotconnector_fhirdestination_Get.json func ExampleIotConnectorFhirDestinationClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -83,7 +83,7 @@ func ExampleIotConnectorFhirDestinationClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_fhirdestination_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/iotconnectors/iotconnector_fhirdestination_Create.json func ExampleIotConnectorFhirDestinationClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -185,7 +185,7 @@ func ExampleIotConnectorFhirDestinationClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_fhirdestination_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/iotconnectors/iotconnector_fhirdestination_Delete.json func ExampleIotConnectorFhirDestinationClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectors_client.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectors_client.go index 3375717f7020..67780fdbb12c 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectors_client.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectors_client.go @@ -28,7 +28,7 @@ type IotConnectorsClient struct { } // NewIotConnectorsClient creates a new instance of IotConnectorsClient with the specified values. -// - subscriptionID - The subscription identifier. +// - subscriptionID - The ID of the target subscription. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewIotConnectorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IotConnectorsClient, error) { @@ -46,7 +46,7 @@ func NewIotConnectorsClient(subscriptionID string, credential azcore.TokenCreden // BeginCreateOrUpdate - Creates or updates an IoT Connector resource with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - iotConnectorName - The name of IoT Connector resource. @@ -73,7 +73,7 @@ func (client *IotConnectorsClient) BeginCreateOrUpdate(ctx context.Context, reso // CreateOrUpdate - Creates or updates an IoT Connector resource with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *IotConnectorsClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, iotConnectorName string, iotConnector IotConnector, options *IotConnectorsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "IotConnectorsClient.BeginCreateOrUpdate" @@ -119,7 +119,7 @@ func (client *IotConnectorsClient) createOrUpdateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, iotConnector); err != nil { @@ -131,7 +131,7 @@ func (client *IotConnectorsClient) createOrUpdateCreateRequest(ctx context.Conte // BeginDelete - Deletes an IoT Connector. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - iotConnectorName - The name of IoT Connector resource. // - workspaceName - The name of workspace resource. @@ -157,7 +157,7 @@ func (client *IotConnectorsClient) BeginDelete(ctx context.Context, resourceGrou // Delete - Deletes an IoT Connector. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *IotConnectorsClient) deleteOperation(ctx context.Context, resourceGroupName string, iotConnectorName string, workspaceName string, options *IotConnectorsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "IotConnectorsClient.BeginDelete" @@ -203,7 +203,7 @@ func (client *IotConnectorsClient) deleteCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -212,7 +212,7 @@ func (client *IotConnectorsClient) deleteCreateRequest(ctx context.Context, reso // Get - Gets the properties of the specified IoT Connector. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - iotConnectorName - The name of IoT Connector resource. @@ -263,7 +263,7 @@ func (client *IotConnectorsClient) getCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -280,7 +280,7 @@ func (client *IotConnectorsClient) getHandleResponse(resp *http.Response) (IotCo // NewListByWorkspacePager - Lists all IoT Connectors for the given workspace // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - options - IotConnectorsClientListByWorkspaceOptions contains the optional parameters for the IotConnectorsClient.NewListByWorkspacePager @@ -328,7 +328,7 @@ func (client *IotConnectorsClient) listByWorkspaceCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -346,7 +346,7 @@ func (client *IotConnectorsClient) listByWorkspaceHandleResponse(resp *http.Resp // BeginUpdate - Patch an IoT Connector. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - iotConnectorName - The name of IoT Connector resource. // - workspaceName - The name of workspace resource. @@ -373,7 +373,7 @@ func (client *IotConnectorsClient) BeginUpdate(ctx context.Context, resourceGrou // Update - Patch an IoT Connector. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *IotConnectorsClient) update(ctx context.Context, resourceGroupName string, iotConnectorName string, workspaceName string, iotConnectorPatchResource IotConnectorPatchResource, options *IotConnectorsClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "IotConnectorsClient.BeginUpdate" @@ -419,7 +419,7 @@ func (client *IotConnectorsClient) updateCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, iotConnectorPatchResource); err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectors_client_example_test.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectors_client_example_test.go index 9acdcecf1365..2d1deba5a053 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectors_client_example_test.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/iotconnectors_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/iotconnectors/iotconnector_List.json func ExampleIotConnectorsClient_NewListByWorkspacePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -150,7 +150,7 @@ func ExampleIotConnectorsClient_NewListByWorkspacePager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/iotconnectors/iotconnector_Get.json func ExampleIotConnectorsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -222,7 +222,7 @@ func ExampleIotConnectorsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/iotconnectors/iotconnector_Create.json func ExampleIotConnectorsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -338,7 +338,7 @@ func ExampleIotConnectorsClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/iotconnectors/iotconnector_Patch.json func ExampleIotConnectorsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -423,7 +423,7 @@ func ExampleIotConnectorsClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/iotconnectors/iotconnector_Delete.json func ExampleIotConnectorsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/models.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/models.go index 05869b842877..6bf9f292d7fa 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/models.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/models.go @@ -19,6 +19,24 @@ type CheckNameAvailabilityParameters struct { Type *string } +// CorsConfiguration - The settings for the CORS configuration of the service instance. +type CorsConfiguration struct { + // If credentials are allowed via CORS. + AllowCredentials *bool + + // The headers to be allowed via CORS. + Headers []*string + + // The max age to be allowed via CORS. + MaxAge *int32 + + // The methods to be allowed via CORS. + Methods []*string + + // The origins to be allowed via CORS. + Origins []*string +} + // DicomService - The description of Dicom Service type DicomService struct { // An etag associated with the resource, used for optimistic concurrency when editing it. @@ -81,9 +99,18 @@ type DicomServiceProperties struct { // Dicom Service authentication configuration. AuthenticationConfiguration *DicomServiceAuthenticationConfiguration + // Dicom Service Cors configuration. + CorsConfiguration *CorsConfiguration + + // The encryption settings of the DICOM service + Encryption *Encryption + // Control permission for data plane traffic coming from public networks while private endpoint is enabled. PublicNetworkAccess *PublicNetworkAccess + // READ-ONLY; DICOM Service event support status. + EventState *ServiceEventState + // READ-ONLY; The list of private endpoint connections that are set up for this resource. PrivateEndpointConnections []*PrivateEndpointConnection @@ -94,6 +121,18 @@ type DicomServiceProperties struct { ServiceURL *string } +// Encryption - Settings to encrypt a service +type Encryption struct { + // The encryption settings for the customer-managed key + CustomerManagedKeyEncryption *EncryptionCustomerManagedKeyEncryption +} + +// EncryptionCustomerManagedKeyEncryption - The encryption settings for the customer-managed key +type EncryptionCustomerManagedKeyEncryption struct { + // The URL of the key to use for encryption + KeyEncryptionKeyURL *string +} + // Error details. type Error struct { // Error details @@ -151,12 +190,6 @@ type FhirService struct { Type *string } -// FhirServiceAccessPolicyEntry - An access policy entry. -type FhirServiceAccessPolicyEntry struct { - // REQUIRED; An Azure AD object ID (User or Apps) that is allowed access to the FHIR service. - ObjectID *string -} - // FhirServiceAcrConfiguration - Azure container registry configuration information type FhirServiceAcrConfiguration struct { // The list of the Azure container registry login servers. @@ -211,6 +244,18 @@ type FhirServiceExportConfiguration struct { StorageAccountName *string } +// FhirServiceImportConfiguration - Import operation configuration information +type FhirServiceImportConfiguration struct { + // If the import operation is enabled. + Enabled *bool + + // If the FHIR service is in InitialImportMode. + InitialImportMode *bool + + // The name of the default integration storage account. + IntegrationDataStore *string +} + // FhirServicePatchResource - FhirService patch properties type FhirServicePatchResource struct { // Setting indicating whether the service has a managed identity associated with it. @@ -222,9 +267,6 @@ type FhirServicePatchResource struct { // FhirServiceProperties - Fhir Service properties. type FhirServiceProperties struct { - // Fhir Service access policies. - AccessPolicies []*FhirServiceAccessPolicyEntry - // Fhir Service Azure container registry configuration. AcrConfiguration *FhirServiceAcrConfiguration @@ -234,9 +276,18 @@ type FhirServiceProperties struct { // Fhir Service Cors configuration. CorsConfiguration *FhirServiceCorsConfiguration + // The encryption settings of the FHIR service + Encryption *Encryption + // Fhir Service export configuration. ExportConfiguration *FhirServiceExportConfiguration + // Implementation Guides configuration. + ImplementationGuidesConfiguration *ImplementationGuidesConfiguration + + // Fhir Service import configuration. + ImportConfiguration *FhirServiceImportConfiguration + // Control permission for data plane traffic coming from public networks while private endpoint is enabled. PublicNetworkAccess *PublicNetworkAccess @@ -253,6 +304,13 @@ type FhirServiceProperties struct { ProvisioningState *ProvisioningState } +// ImplementationGuidesConfiguration - The settings for Implementation Guides - defining capabilities for national standards, +// vendor consortiums, clinical societies, etc. +type ImplementationGuidesConfiguration struct { + // If US Core Missing Data requirement is enabled. + UsCoreMissingData *bool +} + // IotConnector - IoT Connector definition. type IotConnector struct { // An etag associated with the resource, used for optimistic concurrency when editing it. @@ -453,13 +511,28 @@ type MetricSpecification struct { // Localized friendly display name of the metric DisplayName *string + // Whether regional MDM account enabled. + EnableRegionalMdmAccount *bool + // Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. FillGapWithZero *bool + // Whether the metric is internal. + IsInternal *bool + + // Pattern for the filter of the metric. + MetricFilterPattern *string + // Name of the metric Name *string - // Name of the MDM namespace. Optional. + // The resource Id dimension name override. + ResourceIDDimensionNameOverride *string + + // The source MDM account. + SourceMdmAccount *string + + // The source MDM namespace. SourceMdmNamespace *string // Supported aggregation types @@ -753,6 +826,9 @@ type ServiceCorsConfigurationInfo struct { // ServiceCosmosDbConfigurationInfo - The settings for the Cosmos DB database backing the service. type ServiceCosmosDbConfigurationInfo struct { + // The multi-tenant application id used to enable CMK access for services in a data sovereign region. + CrossTenantCmkApplicationID *string + // The URI of the customer-managed key for the backing database. KeyVaultKeyURI *string @@ -766,6 +842,18 @@ type ServiceExportConfigurationInfo struct { StorageAccountName *string } +// ServiceImportConfigurationInfo - Import operation configuration information +type ServiceImportConfigurationInfo struct { + // If the import operation is enabled. + Enabled *bool + + // If the FHIR service is in InitialImportMode. + InitialImportMode *bool + + // The name of the default integration storage account. + IntegrationDataStore *string +} + // ServiceManagedIdentity - Managed service identity (system assigned and/or user assigned identities) type ServiceManagedIdentity struct { // Setting indicating whether the service has a managed identity associated with it. @@ -896,6 +984,9 @@ type ServicesProperties struct { // The settings for the export operation of the service instance. ExportConfiguration *ServiceExportConfigurationInfo + // The settings for the import operation of the service instance. + ImportConfiguration *ServiceImportConfigurationInfo + // The list of private endpoint connections that are set up for this resource. PrivateEndpointConnections []*PrivateEndpointConnection diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/models_serde.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/models_serde.go index 961d247f8672..59fb91e21985 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/models_serde.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/models_serde.go @@ -46,6 +46,49 @@ func (c *CheckNameAvailabilityParameters) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CorsConfiguration. +func (c CorsConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowCredentials", c.AllowCredentials) + populate(objectMap, "headers", c.Headers) + populate(objectMap, "maxAge", c.MaxAge) + populate(objectMap, "methods", c.Methods) + populate(objectMap, "origins", c.Origins) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CorsConfiguration. +func (c *CorsConfiguration) 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", c, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "allowCredentials": + err = unpopulate(val, "AllowCredentials", &c.AllowCredentials) + delete(rawMsg, key) + case "headers": + err = unpopulate(val, "Headers", &c.Headers) + delete(rawMsg, key) + case "maxAge": + err = unpopulate(val, "MaxAge", &c.MaxAge) + delete(rawMsg, key) + case "methods": + err = unpopulate(val, "Methods", &c.Methods) + delete(rawMsg, key) + case "origins": + err = unpopulate(val, "Origins", &c.Origins) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DicomService. func (d DicomService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -202,6 +245,9 @@ func (d *DicomServicePatchResource) UnmarshalJSON(data []byte) error { func (d DicomServiceProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "authenticationConfiguration", d.AuthenticationConfiguration) + populate(objectMap, "corsConfiguration", d.CorsConfiguration) + populate(objectMap, "encryption", d.Encryption) + populate(objectMap, "eventState", d.EventState) populate(objectMap, "privateEndpointConnections", d.PrivateEndpointConnections) populate(objectMap, "provisioningState", d.ProvisioningState) populate(objectMap, "publicNetworkAccess", d.PublicNetworkAccess) @@ -221,6 +267,15 @@ func (d *DicomServiceProperties) UnmarshalJSON(data []byte) error { case "authenticationConfiguration": err = unpopulate(val, "AuthenticationConfiguration", &d.AuthenticationConfiguration) delete(rawMsg, key) + case "corsConfiguration": + err = unpopulate(val, "CorsConfiguration", &d.CorsConfiguration) + delete(rawMsg, key) + case "encryption": + err = unpopulate(val, "Encryption", &d.Encryption) + delete(rawMsg, key) + case "eventState": + err = unpopulate(val, "EventState", &d.EventState) + delete(rawMsg, key) case "privateEndpointConnections": err = unpopulate(val, "PrivateEndpointConnections", &d.PrivateEndpointConnections) delete(rawMsg, key) @@ -241,6 +296,60 @@ func (d *DicomServiceProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type Encryption. +func (e Encryption) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "customerManagedKeyEncryption", e.CustomerManagedKeyEncryption) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Encryption. +func (e *Encryption) 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 "customerManagedKeyEncryption": + err = unpopulate(val, "CustomerManagedKeyEncryption", &e.CustomerManagedKeyEncryption) + 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 EncryptionCustomerManagedKeyEncryption. +func (e EncryptionCustomerManagedKeyEncryption) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keyEncryptionKeyUrl", e.KeyEncryptionKeyURL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionCustomerManagedKeyEncryption. +func (e *EncryptionCustomerManagedKeyEncryption) 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 "keyEncryptionKeyUrl": + err = unpopulate(val, "KeyEncryptionKeyURL", &e.KeyEncryptionKeyURL) + 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 Error. func (e Error) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -393,33 +502,6 @@ func (f *FhirService) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type FhirServiceAccessPolicyEntry. -func (f FhirServiceAccessPolicyEntry) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "objectId", f.ObjectID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type FhirServiceAccessPolicyEntry. -func (f *FhirServiceAccessPolicyEntry) 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", f, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "objectId": - err = unpopulate(val, "ObjectID", &f.ObjectID) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", f, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type FhirServiceAcrConfiguration. func (f FhirServiceAcrConfiguration) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -587,6 +669,41 @@ func (f *FhirServiceExportConfiguration) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type FhirServiceImportConfiguration. +func (f FhirServiceImportConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", f.Enabled) + populate(objectMap, "initialImportMode", f.InitialImportMode) + populate(objectMap, "integrationDataStore", f.IntegrationDataStore) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FhirServiceImportConfiguration. +func (f *FhirServiceImportConfiguration) 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", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "enabled": + err = unpopulate(val, "Enabled", &f.Enabled) + delete(rawMsg, key) + case "initialImportMode": + err = unpopulate(val, "InitialImportMode", &f.InitialImportMode) + delete(rawMsg, key) + case "integrationDataStore": + err = unpopulate(val, "IntegrationDataStore", &f.IntegrationDataStore) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type FhirServicePatchResource. func (f FhirServicePatchResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -621,12 +738,14 @@ func (f *FhirServicePatchResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FhirServiceProperties. func (f FhirServiceProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "accessPolicies", f.AccessPolicies) populate(objectMap, "acrConfiguration", f.AcrConfiguration) populate(objectMap, "authenticationConfiguration", f.AuthenticationConfiguration) populate(objectMap, "corsConfiguration", f.CorsConfiguration) + populate(objectMap, "encryption", f.Encryption) populate(objectMap, "eventState", f.EventState) populate(objectMap, "exportConfiguration", f.ExportConfiguration) + populate(objectMap, "implementationGuidesConfiguration", f.ImplementationGuidesConfiguration) + populate(objectMap, "importConfiguration", f.ImportConfiguration) populate(objectMap, "privateEndpointConnections", f.PrivateEndpointConnections) populate(objectMap, "provisioningState", f.ProvisioningState) populate(objectMap, "publicNetworkAccess", f.PublicNetworkAccess) @@ -643,9 +762,6 @@ func (f *FhirServiceProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "accessPolicies": - err = unpopulate(val, "AccessPolicies", &f.AccessPolicies) - delete(rawMsg, key) case "acrConfiguration": err = unpopulate(val, "AcrConfiguration", &f.AcrConfiguration) delete(rawMsg, key) @@ -655,12 +771,21 @@ func (f *FhirServiceProperties) UnmarshalJSON(data []byte) error { case "corsConfiguration": err = unpopulate(val, "CorsConfiguration", &f.CorsConfiguration) delete(rawMsg, key) + case "encryption": + err = unpopulate(val, "Encryption", &f.Encryption) + delete(rawMsg, key) case "eventState": err = unpopulate(val, "EventState", &f.EventState) delete(rawMsg, key) case "exportConfiguration": err = unpopulate(val, "ExportConfiguration", &f.ExportConfiguration) delete(rawMsg, key) + case "implementationGuidesConfiguration": + err = unpopulate(val, "ImplementationGuidesConfiguration", &f.ImplementationGuidesConfiguration) + delete(rawMsg, key) + case "importConfiguration": + err = unpopulate(val, "ImportConfiguration", &f.ImportConfiguration) + delete(rawMsg, key) case "privateEndpointConnections": err = unpopulate(val, "PrivateEndpointConnections", &f.PrivateEndpointConnections) delete(rawMsg, key) @@ -681,6 +806,33 @@ func (f *FhirServiceProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ImplementationGuidesConfiguration. +func (i ImplementationGuidesConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "usCoreMissingData", i.UsCoreMissingData) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImplementationGuidesConfiguration. +func (i *ImplementationGuidesConfiguration) 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", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "usCoreMissingData": + err = unpopulate(val, "UsCoreMissingData", &i.UsCoreMissingData) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type IotConnector. func (i IotConnector) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -1199,8 +1351,13 @@ func (m MetricSpecification) MarshalJSON() ([]byte, error) { populate(objectMap, "dimensions", m.Dimensions) populate(objectMap, "displayDescription", m.DisplayDescription) populate(objectMap, "displayName", m.DisplayName) + populate(objectMap, "enableRegionalMdmAccount", m.EnableRegionalMdmAccount) populate(objectMap, "fillGapWithZero", m.FillGapWithZero) + populate(objectMap, "isInternal", m.IsInternal) + populate(objectMap, "metricFilterPattern", m.MetricFilterPattern) populate(objectMap, "name", m.Name) + populate(objectMap, "resourceIdDimensionNameOverride", m.ResourceIDDimensionNameOverride) + populate(objectMap, "sourceMdmAccount", m.SourceMdmAccount) populate(objectMap, "sourceMdmNamespace", m.SourceMdmNamespace) populate(objectMap, "supportedAggregationTypes", m.SupportedAggregationTypes) populate(objectMap, "supportedTimeGrainTypes", m.SupportedTimeGrainTypes) @@ -1232,12 +1389,27 @@ func (m *MetricSpecification) UnmarshalJSON(data []byte) error { case "displayName": err = unpopulate(val, "DisplayName", &m.DisplayName) delete(rawMsg, key) + case "enableRegionalMdmAccount": + err = unpopulate(val, "EnableRegionalMdmAccount", &m.EnableRegionalMdmAccount) + delete(rawMsg, key) case "fillGapWithZero": err = unpopulate(val, "FillGapWithZero", &m.FillGapWithZero) delete(rawMsg, key) + case "isInternal": + err = unpopulate(val, "IsInternal", &m.IsInternal) + delete(rawMsg, key) + case "metricFilterPattern": + err = unpopulate(val, "MetricFilterPattern", &m.MetricFilterPattern) + delete(rawMsg, key) case "name": err = unpopulate(val, "Name", &m.Name) delete(rawMsg, key) + case "resourceIdDimensionNameOverride": + err = unpopulate(val, "ResourceIDDimensionNameOverride", &m.ResourceIDDimensionNameOverride) + delete(rawMsg, key) + case "sourceMdmAccount": + err = unpopulate(val, "SourceMdmAccount", &m.SourceMdmAccount) + delete(rawMsg, key) case "sourceMdmNamespace": err = unpopulate(val, "SourceMdmNamespace", &m.SourceMdmNamespace) delete(rawMsg, key) @@ -2066,6 +2238,7 @@ func (s *ServiceCorsConfigurationInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ServiceCosmosDbConfigurationInfo. func (s ServiceCosmosDbConfigurationInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "crossTenantCmkApplicationId", s.CrossTenantCmkApplicationID) populate(objectMap, "keyVaultKeyUri", s.KeyVaultKeyURI) populate(objectMap, "offerThroughput", s.OfferThroughput) return json.Marshal(objectMap) @@ -2080,6 +2253,9 @@ func (s *ServiceCosmosDbConfigurationInfo) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "crossTenantCmkApplicationId": + err = unpopulate(val, "CrossTenantCmkApplicationID", &s.CrossTenantCmkApplicationID) + delete(rawMsg, key) case "keyVaultKeyUri": err = unpopulate(val, "KeyVaultKeyURI", &s.KeyVaultKeyURI) delete(rawMsg, key) @@ -2121,6 +2297,41 @@ func (s *ServiceExportConfigurationInfo) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ServiceImportConfigurationInfo. +func (s ServiceImportConfigurationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", s.Enabled) + populate(objectMap, "initialImportMode", s.InitialImportMode) + populate(objectMap, "integrationDataStore", s.IntegrationDataStore) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServiceImportConfigurationInfo. +func (s *ServiceImportConfigurationInfo) 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", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "enabled": + err = unpopulate(val, "Enabled", &s.Enabled) + delete(rawMsg, key) + case "initialImportMode": + err = unpopulate(val, "InitialImportMode", &s.InitialImportMode) + delete(rawMsg, key) + case "integrationDataStore": + err = unpopulate(val, "IntegrationDataStore", &s.IntegrationDataStore) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ServiceManagedIdentity. func (s ServiceManagedIdentity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -2422,6 +2633,7 @@ func (s ServicesProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "corsConfiguration", s.CorsConfiguration) populate(objectMap, "cosmosDbConfiguration", s.CosmosDbConfiguration) populate(objectMap, "exportConfiguration", s.ExportConfiguration) + populate(objectMap, "importConfiguration", s.ImportConfiguration) populate(objectMap, "privateEndpointConnections", s.PrivateEndpointConnections) populate(objectMap, "provisioningState", s.ProvisioningState) populate(objectMap, "publicNetworkAccess", s.PublicNetworkAccess) @@ -2455,6 +2667,9 @@ func (s *ServicesProperties) UnmarshalJSON(data []byte) error { case "exportConfiguration": err = unpopulate(val, "ExportConfiguration", &s.ExportConfiguration) delete(rawMsg, key) + case "importConfiguration": + err = unpopulate(val, "ImportConfiguration", &s.ImportConfiguration) + delete(rawMsg, key) case "privateEndpointConnections": err = unpopulate(val, "PrivateEndpointConnections", &s.PrivateEndpointConnections) delete(rawMsg, key) diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/operationresults_client.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/operationresults_client.go index daff1a8e0b4c..573295f872f2 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/operationresults_client.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/operationresults_client.go @@ -28,7 +28,7 @@ type OperationResultsClient struct { } // NewOperationResultsClient creates a new instance of OperationResultsClient with the specified values. -// - subscriptionID - The subscription identifier. +// - subscriptionID - The ID of the target subscription. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewOperationResultsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationResultsClient, error) { @@ -46,7 +46,7 @@ func NewOperationResultsClient(subscriptionID string, credential azcore.TokenCre // Get - Get the operation result for a long running operation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - locationName - The location of the operation. // - operationResultID - The ID of the operation result to get. // - options - OperationResultsClientGetOptions contains the optional parameters for the OperationResultsClient.Get method. @@ -92,7 +92,7 @@ func (client *OperationResultsClient) getCreateRequest(ctx context.Context, loca return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/operationresults_client_example_test.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/operationresults_client_example_test.go index 2fc51f1031e1..a8d62c565f15 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/operationresults_client_example_test.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/operationresults_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/OperationResultsGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/OperationResultsGet.json func ExampleOperationResultsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/operations_client.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/operations_client.go index 93249b69e9a7..cacaada4a440 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/operations_client.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/operations_client.go @@ -39,7 +39,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - Lists all of the available operations supported by Microsoft Healthcare resource provider. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ @@ -72,7 +72,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/operations_client_example_test.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/operations_client_example_test.go index 1e8feef1e732..abfd469cd98d 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/operations_client_example_test.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/operations_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/OperationsList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/OperationsList.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/privateendpointconnections_client.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/privateendpointconnections_client.go index 83a8520b76ab..295c1ff3fd87 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/privateendpointconnections_client.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/privateendpointconnections_client.go @@ -28,7 +28,7 @@ type PrivateEndpointConnectionsClient struct { } // NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values. -// - subscriptionID - The subscription identifier. +// - subscriptionID - The ID of the target subscription. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error) { @@ -46,7 +46,7 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcor // BeginCreateOrUpdate - Update the state of the specified private endpoint connection associated with the service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - resourceName - The name of the service instance. // - privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource @@ -73,7 +73,7 @@ func (client *PrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx context. // CreateOrUpdate - Update the state of the specified private endpoint connection associated with the service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *PrivateEndpointConnectionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, properties PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "PrivateEndpointConnectionsClient.BeginCreateOrUpdate" @@ -119,7 +119,7 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { @@ -131,7 +131,7 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx // BeginDelete - Deletes a private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - resourceName - The name of the service instance. // - privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource @@ -157,7 +157,7 @@ func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, // Delete - Deletes a private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *PrivateEndpointConnectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "PrivateEndpointConnectionsClient.BeginDelete" @@ -203,7 +203,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -212,7 +212,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. // Get - Gets the specified private endpoint connection associated with the service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - resourceName - The name of the service instance. // - privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource @@ -264,7 +264,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -281,7 +281,7 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res // NewListByServicePager - Lists all private endpoint connections for a service. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - resourceName - The name of the service instance. // - options - PrivateEndpointConnectionsClientListByServiceOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListByServicePager @@ -330,7 +330,7 @@ func (client *PrivateEndpointConnectionsClient) listByServiceCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/privateendpointconnections_client_example_test.go index ab331e3421fa..f4f7f24edeb5 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/privateendpointconnections_client_example_test.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/privateendpointconnections_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceListPrivateEndpointConnections.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceListPrivateEndpointConnections.json func ExamplePrivateEndpointConnectionsClient_NewListByServicePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -61,7 +61,7 @@ func ExamplePrivateEndpointConnectionsClient_NewListByServicePager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceGetPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceGetPrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -96,7 +96,7 @@ func ExamplePrivateEndpointConnectionsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceCreatePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceCreatePrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -143,7 +143,7 @@ func ExamplePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceDeletePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceDeletePrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/privatelinkresources_client.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/privatelinkresources_client.go index 3da1723b6ccc..71e4bf9361fa 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/privatelinkresources_client.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/privatelinkresources_client.go @@ -28,7 +28,7 @@ type PrivateLinkResourcesClient struct { } // NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values. -// - subscriptionID - The subscription identifier. +// - subscriptionID - The ID of the target subscription. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error) { @@ -46,7 +46,7 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke // Get - Gets a private link resource that need to be created for a service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - resourceName - The name of the service instance. // - groupName - The name of the private link resource group. @@ -98,7 +98,7 @@ func (client *PrivateLinkResourcesClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -116,7 +116,7 @@ func (client *PrivateLinkResourcesClient) getHandleResponse(resp *http.Response) // ListByService - Gets the private link resources that need to be created for a service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - resourceName - The name of the service instance. // - options - PrivateLinkResourcesClientListByServiceOptions contains the optional parameters for the PrivateLinkResourcesClient.ListByService @@ -163,7 +163,7 @@ func (client *PrivateLinkResourcesClient) listByServiceCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/privatelinkresources_client_example_test.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/privatelinkresources_client_example_test.go index 29d2f982f2a3..cb95bb9bde25 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/privatelinkresources_client_example_test.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/privatelinkresources_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/PrivateLinkResourcesListByService.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/PrivateLinkResourcesListByService.json func ExamplePrivateLinkResourcesClient_ListByService() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -52,7 +52,7 @@ func ExamplePrivateLinkResourcesClient_ListByService() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/PrivateLinkResourceGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/PrivateLinkResourceGet.json func ExamplePrivateLinkResourcesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/services_client.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/services_client.go index 6a889e49deaa..ff89d4fdcf1e 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/services_client.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/services_client.go @@ -28,7 +28,7 @@ type ServicesClient struct { } // NewServicesClient creates a new instance of ServicesClient with the specified values. -// - subscriptionID - The subscription identifier. +// - subscriptionID - The ID of the target subscription. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServicesClient, error) { @@ -46,7 +46,7 @@ func NewServicesClient(subscriptionID string, credential azcore.TokenCredential, // CheckNameAvailability - Check if a service instance name is available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - checkNameAvailabilityInputs - Set the name parameter in the CheckNameAvailabilityParameters structure to the name of the // service instance to check. // - options - ServicesClientCheckNameAvailabilityOptions contains the optional parameters for the ServicesClient.CheckNameAvailability @@ -85,7 +85,7 @@ func (client *ServicesClient) checkNameAvailabilityCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, checkNameAvailabilityInputs); err != nil { @@ -106,7 +106,7 @@ func (client *ServicesClient) checkNameAvailabilityHandleResponse(resp *http.Res // BeginCreateOrUpdate - Create or update the metadata of a service instance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - resourceName - The name of the service instance. // - serviceDescription - The service instance metadata. @@ -132,7 +132,7 @@ func (client *ServicesClient) BeginCreateOrUpdate(ctx context.Context, resourceG // CreateOrUpdate - Create or update the metadata of a service instance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *ServicesClient) createOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, serviceDescription ServicesDescription, options *ServicesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "ServicesClient.BeginCreateOrUpdate" @@ -174,7 +174,7 @@ func (client *ServicesClient) createOrUpdateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, serviceDescription); err != nil { @@ -186,7 +186,7 @@ func (client *ServicesClient) createOrUpdateCreateRequest(ctx context.Context, r // BeginDelete - Delete a service instance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - resourceName - The name of the service instance. // - options - ServicesClientBeginDeleteOptions contains the optional parameters for the ServicesClient.BeginDelete method. @@ -210,7 +210,7 @@ func (client *ServicesClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Delete a service instance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *ServicesClient) deleteOperation(ctx context.Context, resourceGroupName string, resourceName string, options *ServicesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "ServicesClient.BeginDelete" @@ -252,7 +252,7 @@ func (client *ServicesClient) deleteCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -261,7 +261,7 @@ func (client *ServicesClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Get the metadata of a service instance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - resourceName - The name of the service instance. // - options - ServicesClientGetOptions contains the optional parameters for the ServicesClient.Get method. @@ -307,7 +307,7 @@ func (client *ServicesClient) getCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -324,7 +324,7 @@ func (client *ServicesClient) getHandleResponse(resp *http.Response) (ServicesCl // NewListPager - Get all the service instances in a subscription. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - options - ServicesClientListOptions contains the optional parameters for the ServicesClient.NewListPager method. func (client *ServicesClient) NewListPager(options *ServicesClientListOptions) *runtime.Pager[ServicesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ServicesClientListResponse]{ @@ -361,7 +361,7 @@ func (client *ServicesClient) listCreateRequest(ctx context.Context, options *Se return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -378,7 +378,7 @@ func (client *ServicesClient) listHandleResponse(resp *http.Response) (ServicesC // NewListByResourceGroupPager - Get all the service instances in a resource group. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - options - ServicesClientListByResourceGroupOptions contains the optional parameters for the ServicesClient.NewListByResourceGroupPager // method. @@ -421,7 +421,7 @@ func (client *ServicesClient) listByResourceGroupCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -439,7 +439,7 @@ func (client *ServicesClient) listByResourceGroupHandleResponse(resp *http.Respo // BeginUpdate - Update the metadata of a service instance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - resourceName - The name of the service instance. // - servicePatchDescription - The service instance metadata and security metadata. @@ -464,7 +464,7 @@ func (client *ServicesClient) BeginUpdate(ctx context.Context, resourceGroupName // Update - Update the metadata of a service instance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *ServicesClient) update(ctx context.Context, resourceGroupName string, resourceName string, servicePatchDescription ServicesPatchDescription, options *ServicesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "ServicesClient.BeginUpdate" @@ -506,7 +506,7 @@ func (client *ServicesClient) updateCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, servicePatchDescription); err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/services_client_example_test.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/services_client_example_test.go index c93460bf6ecc..bb4fab7bf1f7 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/services_client_example_test.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/services_client_example_test.go @@ -15,11 +15,11 @@ import ( "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/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceGet.json -func ExampleServicesClient_Get() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceGet.json +func ExampleServicesClient_Get_getMetadata() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -85,7 +85,74 @@ func ExampleServicesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceGetInDataSovereignRegionWithCmkEnabled.json +func ExampleServicesClient_Get_getMetadataForCmkEnabledServiceInDataSovereignRegion() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armhealthcareapis.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewServicesClient().Get(ctx, "rg1", "service1", 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.ServicesDescription = armhealthcareapis.ServicesDescription{ + // Name: to.Ptr("service1"), + // Type: to.Ptr("Microsoft.HealthcareApis/services"), + // Etag: to.Ptr("etagvalue"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HealthcareApis/services/service1"), + // Kind: to.Ptr(armhealthcareapis.KindFhirR4), + // Location: to.Ptr("Southeast Asia"), + // Tags: map[string]*string{ + // }, + // Properties: &armhealthcareapis.ServicesProperties{ + // AccessPolicies: []*armhealthcareapis.ServiceAccessPolicyEntry{ + // { + // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), + // }, + // { + // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), + // }}, + // AuthenticationConfiguration: &armhealthcareapis.ServiceAuthenticationConfigurationInfo{ + // Audience: to.Ptr("https://azurehealthcareapis.com"), + // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), + // SmartProxyEnabled: to.Ptr(true), + // }, + // CorsConfiguration: &armhealthcareapis.ServiceCorsConfigurationInfo{ + // AllowCredentials: to.Ptr(false), + // Headers: []*string{ + // to.Ptr("*")}, + // MaxAge: to.Ptr[int32](1440), + // Methods: []*string{ + // to.Ptr("DELETE"), + // to.Ptr("GET"), + // to.Ptr("OPTIONS"), + // to.Ptr("PATCH"), + // to.Ptr("POST"), + // to.Ptr("PUT")}, + // Origins: []*string{ + // to.Ptr("*")}, + // }, + // CosmosDbConfiguration: &armhealthcareapis.ServiceCosmosDbConfigurationInfo{ + // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), + // OfferThroughput: to.Ptr[int32](1000), + // }, + // PrivateEndpointConnections: []*armhealthcareapis.PrivateEndpointConnection{ + // }, + // ProvisioningState: to.Ptr(armhealthcareapis.ProvisioningStateSucceeded), + // PublicNetworkAccess: to.Ptr(armhealthcareapis.PublicNetworkAccessDisabled), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceCreate.json func ExampleServicesClient_BeginCreateOrUpdate_createOrUpdateAServiceWithAllParameters() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -209,7 +276,133 @@ func ExampleServicesClient_BeginCreateOrUpdate_createOrUpdateAServiceWithAllPara // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceCreateMinimum.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceCreateInDataSovereignRegionWithCmkEnabled.json +func ExampleServicesClient_BeginCreateOrUpdate_createOrUpdateAServiceWithAllParametersAndCmkEnabledInADataSovereignRegion() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armhealthcareapis.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewServicesClient().BeginCreateOrUpdate(ctx, "rg1", "service1", armhealthcareapis.ServicesDescription{ + Identity: &armhealthcareapis.ServicesResourceIdentity{ + Type: to.Ptr(armhealthcareapis.ManagedServiceIdentityTypeSystemAssigned), + }, + Kind: to.Ptr(armhealthcareapis.KindFhirR4), + Location: to.Ptr("Southeast Asia"), + Tags: map[string]*string{}, + Properties: &armhealthcareapis.ServicesProperties{ + AccessPolicies: []*armhealthcareapis.ServiceAccessPolicyEntry{ + { + ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), + }, + { + ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), + }}, + AuthenticationConfiguration: &armhealthcareapis.ServiceAuthenticationConfigurationInfo{ + Audience: to.Ptr("https://azurehealthcareapis.com"), + Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), + SmartProxyEnabled: to.Ptr(true), + }, + CorsConfiguration: &armhealthcareapis.ServiceCorsConfigurationInfo{ + AllowCredentials: to.Ptr(false), + Headers: []*string{ + to.Ptr("*")}, + MaxAge: to.Ptr[int32](1440), + Methods: []*string{ + to.Ptr("DELETE"), + to.Ptr("GET"), + to.Ptr("OPTIONS"), + to.Ptr("PATCH"), + to.Ptr("POST"), + to.Ptr("PUT")}, + Origins: []*string{ + to.Ptr("*")}, + }, + CosmosDbConfiguration: &armhealthcareapis.ServiceCosmosDbConfigurationInfo{ + CrossTenantCmkApplicationID: to.Ptr("de3fbeef-8c3a-428e-8b9f-4d229c8a85f4"), + KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), + OfferThroughput: to.Ptr[int32](1000), + }, + ExportConfiguration: &armhealthcareapis.ServiceExportConfigurationInfo{ + StorageAccountName: to.Ptr("existingStorageAccount"), + }, + PrivateEndpointConnections: []*armhealthcareapis.PrivateEndpointConnection{}, + PublicNetworkAccess: to.Ptr(armhealthcareapis.PublicNetworkAccessDisabled), + }, + }, 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.ServicesDescription = armhealthcareapis.ServicesDescription{ + // Name: to.Ptr("service1"), + // Type: to.Ptr("Microsoft.HealthcareApis/services"), + // Etag: to.Ptr("etagvalue"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HealthcareApis/services/service1"), + // Identity: &armhealthcareapis.ServicesResourceIdentity{ + // Type: to.Ptr(armhealthcareapis.ManagedServiceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("03fe6ae0-952c-4e4b-954b-cc0364dd252e"), + // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d8cd011db47"), + // }, + // Kind: to.Ptr(armhealthcareapis.KindFhirR4), + // Location: to.Ptr("West US 2"), + // Tags: map[string]*string{ + // }, + // Properties: &armhealthcareapis.ServicesProperties{ + // AccessPolicies: []*armhealthcareapis.ServiceAccessPolicyEntry{ + // { + // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), + // }, + // { + // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), + // }}, + // AuthenticationConfiguration: &armhealthcareapis.ServiceAuthenticationConfigurationInfo{ + // Audience: to.Ptr("https://azurehealthcareapis.com"), + // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), + // SmartProxyEnabled: to.Ptr(true), + // }, + // CorsConfiguration: &armhealthcareapis.ServiceCorsConfigurationInfo{ + // AllowCredentials: to.Ptr(false), + // Headers: []*string{ + // to.Ptr("*")}, + // MaxAge: to.Ptr[int32](1440), + // Methods: []*string{ + // to.Ptr("DELETE"), + // to.Ptr("GET"), + // to.Ptr("OPTIONS"), + // to.Ptr("PATCH"), + // to.Ptr("POST"), + // to.Ptr("PUT")}, + // Origins: []*string{ + // to.Ptr("*")}, + // }, + // CosmosDbConfiguration: &armhealthcareapis.ServiceCosmosDbConfigurationInfo{ + // CrossTenantCmkApplicationID: to.Ptr("de3fbeef-8c3a-428e-8b9f-4d229c8a85f4"), + // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), + // OfferThroughput: to.Ptr[int32](1000), + // }, + // ExportConfiguration: &armhealthcareapis.ServiceExportConfigurationInfo{ + // StorageAccountName: to.Ptr("existingStorageAccount"), + // }, + // PrivateEndpointConnections: []*armhealthcareapis.PrivateEndpointConnection{ + // }, + // ProvisioningState: to.Ptr(armhealthcareapis.ProvisioningStateSucceeded), + // PublicNetworkAccess: to.Ptr(armhealthcareapis.PublicNetworkAccessDisabled), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceCreateMinimum.json func ExampleServicesClient_BeginCreateOrUpdate_createOrUpdateAServiceWithMinimumParameters() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -280,7 +473,7 @@ func ExampleServicesClient_BeginCreateOrUpdate_createOrUpdateAServiceWithMinimum // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServicePatch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServicePatch.json func ExampleServicesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -358,7 +551,7 @@ func ExampleServicesClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceDelete.json func ExampleServicesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -379,7 +572,7 @@ func ExampleServicesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceList.json func ExampleServicesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -454,7 +647,7 @@ func ExampleServicesClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceListByResourceGroup.json func ExampleServicesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -529,7 +722,7 @@ func ExampleServicesClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/CheckNameAvailabilityPost.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/CheckNameAvailabilityPost.json func ExampleServicesClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivateendpointconnections_client.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivateendpointconnections_client.go index 517eb9be2d45..77f6831735d7 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivateendpointconnections_client.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivateendpointconnections_client.go @@ -28,7 +28,7 @@ type WorkspacePrivateEndpointConnectionsClient struct { } // NewWorkspacePrivateEndpointConnectionsClient creates a new instance of WorkspacePrivateEndpointConnectionsClient with the specified values. -// - subscriptionID - The subscription identifier. +// - subscriptionID - The ID of the target subscription. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewWorkspacePrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspacePrivateEndpointConnectionsClient, error) { @@ -46,7 +46,7 @@ func NewWorkspacePrivateEndpointConnectionsClient(subscriptionID string, credent // BeginCreateOrUpdate - Update the state of the specified private endpoint connection associated with the workspace. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource @@ -73,7 +73,7 @@ func (client *WorkspacePrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx // CreateOrUpdate - Update the state of the specified private endpoint connection associated with the workspace. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *WorkspacePrivateEndpointConnectionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, properties PrivateEndpointConnectionDescription, options *WorkspacePrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "WorkspacePrivateEndpointConnectionsClient.BeginCreateOrUpdate" @@ -119,7 +119,7 @@ func (client *WorkspacePrivateEndpointConnectionsClient) createOrUpdateCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { @@ -131,7 +131,7 @@ func (client *WorkspacePrivateEndpointConnectionsClient) createOrUpdateCreateReq // BeginDelete - Deletes a private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource @@ -157,7 +157,7 @@ func (client *WorkspacePrivateEndpointConnectionsClient) BeginDelete(ctx context // Delete - Deletes a private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *WorkspacePrivateEndpointConnectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, options *WorkspacePrivateEndpointConnectionsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "WorkspacePrivateEndpointConnectionsClient.BeginDelete" @@ -203,7 +203,7 @@ func (client *WorkspacePrivateEndpointConnectionsClient) deleteCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -212,7 +212,7 @@ func (client *WorkspacePrivateEndpointConnectionsClient) deleteCreateRequest(ctx // Get - Gets the specified private endpoint connection associated with the workspace. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource @@ -264,7 +264,7 @@ func (client *WorkspacePrivateEndpointConnectionsClient) getCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -281,7 +281,7 @@ func (client *WorkspacePrivateEndpointConnectionsClient) getHandleResponse(resp // NewListByWorkspacePager - Lists all private endpoint connections for a workspace. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - options - WorkspacePrivateEndpointConnectionsClientListByWorkspaceOptions contains the optional parameters for the WorkspacePrivateEndpointConnectionsClient.NewListByWorkspacePager @@ -330,7 +330,7 @@ func (client *WorkspacePrivateEndpointConnectionsClient) listByWorkspaceCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivateendpointconnections_client_example_test.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivateendpointconnections_client_example_test.go index bedf3256e2a1..eb1977948463 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivateendpointconnections_client_example_test.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivateendpointconnections_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/WorkspaceListPrivateEndpointConnections.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/privatelink/WorkspaceListPrivateEndpointConnections.json func ExampleWorkspacePrivateEndpointConnectionsClient_NewListByWorkspacePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -61,7 +61,7 @@ func ExampleWorkspacePrivateEndpointConnectionsClient_NewListByWorkspacePager() } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/WorkspaceGetPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/privatelink/WorkspaceGetPrivateEndpointConnection.json func ExampleWorkspacePrivateEndpointConnectionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -96,7 +96,7 @@ func ExampleWorkspacePrivateEndpointConnectionsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/WorkspaceCreatePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/privatelink/WorkspaceCreatePrivateEndpointConnection.json func ExampleWorkspacePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -143,7 +143,7 @@ func ExampleWorkspacePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/WorkspaceDeletePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/privatelink/WorkspaceDeletePrivateEndpointConnection.json func ExampleWorkspacePrivateEndpointConnectionsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivatelinkresources_client.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivatelinkresources_client.go index 3f867cbe040d..a3d1fab3f8cb 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivatelinkresources_client.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivatelinkresources_client.go @@ -28,7 +28,7 @@ type WorkspacePrivateLinkResourcesClient struct { } // NewWorkspacePrivateLinkResourcesClient creates a new instance of WorkspacePrivateLinkResourcesClient with the specified values. -// - subscriptionID - The subscription identifier. +// - subscriptionID - The ID of the target subscription. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewWorkspacePrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspacePrivateLinkResourcesClient, error) { @@ -46,7 +46,7 @@ func NewWorkspacePrivateLinkResourcesClient(subscriptionID string, credential az // Get - Gets a private link resource that need to be created for a workspace. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - groupName - The name of the private link resource group. @@ -98,7 +98,7 @@ func (client *WorkspacePrivateLinkResourcesClient) getCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -115,7 +115,7 @@ func (client *WorkspacePrivateLinkResourcesClient) getHandleResponse(resp *http. // NewListByWorkspacePager - Gets the private link resources that need to be created for a workspace. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - options - WorkspacePrivateLinkResourcesClientListByWorkspaceOptions contains the optional parameters for the WorkspacePrivateLinkResourcesClient.NewListByWorkspacePager @@ -164,7 +164,7 @@ func (client *WorkspacePrivateLinkResourcesClient) listByWorkspaceCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivatelinkresources_client_example_test.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivatelinkresources_client_example_test.go index e10203a07c6a..9ae7fa381f4d 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivatelinkresources_client_example_test.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaceprivatelinkresources_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/PrivateLinkResourcesListByWorkspace.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/privatelink/PrivateLinkResourcesListByWorkspace.json func ExampleWorkspacePrivateLinkResourcesClient_NewListByWorkspacePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -59,7 +59,7 @@ func ExampleWorkspacePrivateLinkResourcesClient_NewListByWorkspacePager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/WorkspacePrivateLinkResourceGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/privatelink/WorkspacePrivateLinkResourceGet.json func ExampleWorkspacePrivateLinkResourcesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaces_client.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaces_client.go index 48f55c1edb31..c93bc2c9f1fd 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaces_client.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaces_client.go @@ -28,7 +28,7 @@ type WorkspacesClient struct { } // NewWorkspacesClient creates a new instance of WorkspacesClient with the specified values. -// - subscriptionID - The subscription identifier. +// - subscriptionID - The ID of the target subscription. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewWorkspacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspacesClient, error) { @@ -46,7 +46,7 @@ func NewWorkspacesClient(subscriptionID string, credential azcore.TokenCredentia // BeginCreateOrUpdate - Creates or updates a workspace resource with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - workspace - The parameters for creating or updating a healthcare workspace. @@ -72,7 +72,7 @@ func (client *WorkspacesClient) BeginCreateOrUpdate(ctx context.Context, resourc // CreateOrUpdate - Creates or updates a workspace resource with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *WorkspacesClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, workspace Workspace, options *WorkspacesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "WorkspacesClient.BeginCreateOrUpdate" @@ -114,7 +114,7 @@ func (client *WorkspacesClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, workspace); err != nil { @@ -126,7 +126,7 @@ func (client *WorkspacesClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Deletes a specified workspace. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - options - WorkspacesClientBeginDeleteOptions contains the optional parameters for the WorkspacesClient.BeginDelete method. @@ -150,7 +150,7 @@ func (client *WorkspacesClient) BeginDelete(ctx context.Context, resourceGroupNa // Delete - Deletes a specified workspace. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *WorkspacesClient) deleteOperation(ctx context.Context, resourceGroupName string, workspaceName string, options *WorkspacesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "WorkspacesClient.BeginDelete" @@ -192,7 +192,7 @@ func (client *WorkspacesClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -201,7 +201,7 @@ func (client *WorkspacesClient) deleteCreateRequest(ctx context.Context, resourc // Get - Gets the properties of the specified workspace. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - options - WorkspacesClientGetOptions contains the optional parameters for the WorkspacesClient.Get method. @@ -247,7 +247,7 @@ func (client *WorkspacesClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -264,7 +264,7 @@ func (client *WorkspacesClient) getHandleResponse(resp *http.Response) (Workspac // NewListByResourceGroupPager - Lists all the available workspaces under the specified resource group. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - options - WorkspacesClientListByResourceGroupOptions contains the optional parameters for the WorkspacesClient.NewListByResourceGroupPager // method. @@ -307,7 +307,7 @@ func (client *WorkspacesClient) listByResourceGroupCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -324,7 +324,7 @@ func (client *WorkspacesClient) listByResourceGroupHandleResponse(resp *http.Res // NewListBySubscriptionPager - Lists all the available workspaces under the specified subscription. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - options - WorkspacesClientListBySubscriptionOptions contains the optional parameters for the WorkspacesClient.NewListBySubscriptionPager // method. func (client *WorkspacesClient) NewListBySubscriptionPager(options *WorkspacesClientListBySubscriptionOptions) *runtime.Pager[WorkspacesClientListBySubscriptionResponse] { @@ -362,7 +362,7 @@ func (client *WorkspacesClient) listBySubscriptionCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -380,7 +380,7 @@ func (client *WorkspacesClient) listBySubscriptionHandleResponse(resp *http.Resp // BeginUpdate - Patch workspace details. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 // - resourceGroupName - The name of the resource group that contains the service instance. // - workspaceName - The name of workspace resource. // - workspacePatchResource - The parameters for updating a specified workspace. @@ -405,7 +405,7 @@ func (client *WorkspacesClient) BeginUpdate(ctx context.Context, resourceGroupNa // Update - Patch workspace details. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-11-01 +// Generated from API version 2023-11-01 func (client *WorkspacesClient) update(ctx context.Context, resourceGroupName string, workspaceName string, workspacePatchResource WorkspacePatchResource, options *WorkspacesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "WorkspacesClient.BeginUpdate" @@ -447,7 +447,7 @@ func (client *WorkspacesClient) updateCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-11-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, workspacePatchResource); err != nil { diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaces_client_example_test.go b/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaces_client_example_test.go index c1334a4b31d4..6df09b890f1d 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaces_client_example_test.go +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/workspaces_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/healthcareapis/armhealthcareapis" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/workspaces/Workspaces_ListBySubscription.json func ExampleWorkspacesClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -55,7 +55,7 @@ func ExampleWorkspacesClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/workspaces/Workspaces_ListByResourceGroup.json func ExampleWorkspacesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -92,7 +92,7 @@ func ExampleWorkspacesClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/workspaces/Workspaces_Get.json func ExampleWorkspacesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -121,7 +121,7 @@ func ExampleWorkspacesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/workspaces/Workspaces_Create.json func ExampleWorkspacesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -157,7 +157,7 @@ func ExampleWorkspacesClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/workspaces/Workspaces_Patch.json func ExampleWorkspacesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -197,7 +197,7 @@ func ExampleWorkspacesClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b8c74fd80b415fa1ebb6fa787d454694c39e0fd5/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/workspaces/Workspaces_Delete.json func ExampleWorkspacesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil {