diff --git a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/CHANGELOG.md b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/CHANGELOG.md index e082fb0ba97d..6277914cc3a6 100644 --- a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/CHANGELOG.md +++ b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.2.0-beta.1 (2023-06-23) +### Features Added + +- New enum type `ManagedServiceIdentityType` with values `ManagedServiceIdentityTypeNone`, `ManagedServiceIdentityTypeSystemAssigned`, `ManagedServiceIdentityTypeSystemAssignedUserAssigned`, `ManagedServiceIdentityTypeUserAssigned` +- New struct `ManagedServiceIdentity` +- New struct `UserAssignedIdentity` +- New field `PortalOperationsHostName` in struct `IotDpsPropertiesDescription` +- New field `Identity`, `Resourcegroup`, `Subscriptionid` in struct `ProvisioningServiceDescription` + + ## 1.1.0 (2023-03-28) ### Features Added diff --git a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/autorest.md b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/autorest.md index f9903814d006..f46d1d0f7909 100644 --- a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/autorest.md +++ b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/autorest.md @@ -5,8 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.2.0-beta.1 +tag: package-preview-2023-03 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/build.go b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/build.go index f5b293f4d4e5..89b46648c25e 100644 --- a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/build.go +++ b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/build.go @@ -2,6 +2,6 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // This file enables 'go generate' to regenerate this specific SDK -//go:generate pwsh ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices +//go:generate pwsh ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate -removeUnreferencedTypes resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices package armdeviceprovisioningservices diff --git a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/constants.go b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/constants.go index 5211a587b94b..f7b6f916a1ef 100644 --- a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/constants.go +++ b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/constants.go @@ -11,7 +11,7 @@ package armdeviceprovisioningservices const ( moduleName = "armdeviceprovisioningservices" - moduleVersion = "v1.1.0" + moduleVersion = "v1.2.0-beta.1" ) // AccessRightsDescription - Rights that this key has. @@ -139,6 +139,26 @@ func PossibleIotDpsSKUValues() []IotDpsSKU { } } +// ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). +type ManagedServiceIdentityType string + +const ( + ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" + ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" + ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned,UserAssigned" + ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" +) + +// PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type. +func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType { + return []ManagedServiceIdentityType{ + ManagedServiceIdentityTypeNone, + ManagedServiceIdentityTypeSystemAssigned, + ManagedServiceIdentityTypeSystemAssignedUserAssigned, + ManagedServiceIdentityTypeUserAssigned, + } +} + // NameUnavailabilityReason - specifies the reason a name is unavailable type NameUnavailabilityReason string diff --git a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/dpscertificate_client.go b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/dpscertificate_client.go index 6f824eec86e4..123eb2e72e82 100644 --- a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/dpscertificate_client.go +++ b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/dpscertificate_client.go @@ -50,7 +50,7 @@ func NewDpsCertificateClient(subscriptionID string, credential azcore.TokenCrede // CreateOrUpdate - Add new certificate or update an existing certificate. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - resourceGroupName - Resource group identifier. // - provisioningServiceName - The name of the provisioning service. // - certificateName - The name of the certificate create or update. @@ -96,7 +96,7 @@ func (client *DpsCertificateClient) createOrUpdateCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} @@ -117,7 +117,7 @@ func (client *DpsCertificateClient) createOrUpdateHandleResponse(resp *http.Resp // Delete - Deletes the specified certificate associated with the Provisioning Service // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - resourceGroupName - Resource group identifier. // - ifMatch - ETag of the certificate // - provisioningServiceName - The name of the provisioning service. @@ -187,7 +187,7 @@ func (client *DpsCertificateClient) deleteCreateRequest(ctx context.Context, res if options != nil && options.CertificateNonce != nil { reqQP.Set("certificate.nonce", *options.CertificateNonce) } - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["If-Match"] = []string{ifMatch} req.Raw().Header["Accept"] = []string{"application/json"} @@ -197,7 +197,7 @@ func (client *DpsCertificateClient) deleteCreateRequest(ctx context.Context, res // GenerateVerificationCode - Generate verification code for Proof of Possession. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - certificateName - The mandatory logical name of the certificate, that the provisioning service uses to access. // - ifMatch - ETag of the certificate. This is required to update an existing certificate, and ignored while creating a brand // new certificate. @@ -268,7 +268,7 @@ func (client *DpsCertificateClient) generateVerificationCodeCreateRequest(ctx co if options != nil && options.CertificateNonce != nil { reqQP.Set("certificate.nonce", *options.CertificateNonce) } - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["If-Match"] = []string{ifMatch} req.Raw().Header["Accept"] = []string{"application/json"} @@ -287,7 +287,7 @@ func (client *DpsCertificateClient) generateVerificationCodeHandleResponse(resp // Get - Get the certificate from the provisioning service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - certificateName - Name of the certificate to retrieve. // - resourceGroupName - Resource group identifier. // - provisioningServiceName - Name of the provisioning service the certificate is associated with. @@ -331,7 +331,7 @@ func (client *DpsCertificateClient) getCreateRequest(ctx context.Context, certif return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} @@ -352,7 +352,7 @@ func (client *DpsCertificateClient) getHandleResponse(resp *http.Response) (DpsC // List - Get all the certificates tied to the provisioning service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - resourceGroupName - Name of resource group. // - provisioningServiceName - Name of provisioning service to retrieve certificates for. // - options - DpsCertificateClientListOptions contains the optional parameters for the DpsCertificateClient.List method. @@ -391,7 +391,7 @@ func (client *DpsCertificateClient) listCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -410,7 +410,7 @@ func (client *DpsCertificateClient) listHandleResponse(resp *http.Response) (Dps // pre uploaded certificate. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - certificateName - The mandatory logical name of the certificate, that the provisioning service uses to access. // - ifMatch - ETag of the certificate. // - resourceGroupName - Resource group name. @@ -481,7 +481,7 @@ func (client *DpsCertificateClient) verifyCertificateCreateRequest(ctx context.C if options != nil && options.CertificateNonce != nil { reqQP.Set("certificate.nonce", *options.CertificateNonce) } - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["If-Match"] = []string{ifMatch} req.Raw().Header["Accept"] = []string{"application/json"} diff --git a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/dpscertificate_client_example_test.go b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/dpscertificate_client_example_test.go index 97a4acd4c026..cc46dc67f706 100644 --- a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/dpscertificate_client_example_test.go +++ b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/dpscertificate_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSGetCertificate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGetCertificate.json func ExampleDpsCertificateClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -42,7 +42,7 @@ func ExampleDpsCertificateClient_Get() { // Etag: to.Ptr("AAAAAAExpNs="), // ID: to.Ptr("/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/andbuc-hub/certificates/cert"), // Properties: &armdeviceprovisioningservices.CertificateProperties{ - // Certificate: []byte("######################################"), + // Certificate: []byte("MA=="), // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC1123, "Thu, 12 Oct 2017 19:23:50 GMT"); return t}()), // Expiry: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC1123, "Sat, 31 Dec 2039 23:59:59 GMT"); return t}()), // IsVerified: to.Ptr(false), @@ -53,7 +53,7 @@ func ExampleDpsCertificateClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSCertificateCreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSCertificateCreateOrUpdate.json func ExampleDpsCertificateClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -66,7 +66,7 @@ func ExampleDpsCertificateClient_CreateOrUpdate() { } res, err := clientFactory.NewDpsCertificateClient().CreateOrUpdate(ctx, "myResourceGroup", "myFirstProvisioningService", "cert", armdeviceprovisioningservices.CertificateResponse{ Properties: &armdeviceprovisioningservices.CertificateProperties{ - Certificate: []byte("############################################"), + Certificate: []byte("MA=="), }, }, &armdeviceprovisioningservices.DpsCertificateClientCreateOrUpdateOptions{IfMatch: nil}) if err != nil { @@ -81,7 +81,7 @@ func ExampleDpsCertificateClient_CreateOrUpdate() { // Etag: to.Ptr("AAAAAAExpNs="), // ID: to.Ptr("/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServives/myFirstProvisioningService/certificates/cert"), // Properties: &armdeviceprovisioningservices.CertificateProperties{ - // Certificate: []byte("############################################"), + // Certificate: []byte("MA=="), // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC1123, "Thu, 12 Oct 2017 19:23:50 GMT"); return t}()), // Expiry: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC1123, "Sat, 31 Dec 2039 23:59:59 GMT"); return t}()), // IsVerified: to.Ptr(false), @@ -92,7 +92,7 @@ func ExampleDpsCertificateClient_CreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSDeleteCertificate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSDeleteCertificate.json func ExampleDpsCertificateClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -116,7 +116,7 @@ func ExampleDpsCertificateClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSGetCertificates.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGetCertificates.json func ExampleDpsCertificateClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -142,7 +142,7 @@ func ExampleDpsCertificateClient_List() { // Etag: to.Ptr("AAAAAAExpNs="), // ID: to.Ptr("/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/andbuc-hub/certificates/cert"), // Properties: &armdeviceprovisioningservices.CertificateProperties{ - // Certificate: []byte("############################################"), + // Certificate: []byte("MA=="), // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC1123, "Thu, 12 Oct 2017 19:23:50 GMT"); return t}()), // Expiry: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC1123, "Sat, 31 Dec 2039 23:59:59 GMT"); return t}()), // IsVerified: to.Ptr(false), @@ -154,7 +154,7 @@ func ExampleDpsCertificateClient_List() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSGenerateVerificationCode.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGenerateVerificationCode.json func ExampleDpsCertificateClient_GenerateVerificationCode() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -182,7 +182,7 @@ func ExampleDpsCertificateClient_GenerateVerificationCode() { // res.VerificationCodeResponse = armdeviceprovisioningservices.VerificationCodeResponse{ // Name: to.Ptr("cert"), // Properties: &armdeviceprovisioningservices.VerificationCodeResponseProperties{ - // Certificate: []byte("###########################"), + // Certificate: []byte("MA=="), // Created: to.Ptr("Thu, 12 Oct 2017 19:23:50 GMT"), // Expiry: to.Ptr("Sat, 31 Dec 2039 23:59:59 GMT"), // IsVerified: to.Ptr(false), @@ -194,7 +194,7 @@ func ExampleDpsCertificateClient_GenerateVerificationCode() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSVerifyCertificate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSVerifyCertificate.json func ExampleDpsCertificateClient_VerifyCertificate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -227,7 +227,7 @@ func ExampleDpsCertificateClient_VerifyCertificate() { // Etag: to.Ptr("AAAAAAExpTQ="), // ID: to.Ptr("/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService/certificates/cert"), // Properties: &armdeviceprovisioningservices.CertificateProperties{ - // Certificate: []byte("#####################################"), + // Certificate: []byte("MA=="), // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC1123, "Thu, 12 Oct 2017 19:23:50 GMT"); return t}()), // Expiry: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC1123, "Sat, 31 Dec 2039 23:59:59 GMT"); return t}()), // IsVerified: to.Ptr(true), diff --git a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/go.mod b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/go.mod index 8dfccac728a4..2165c5c893c5 100644 --- a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/go.mod +++ b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/go.mod @@ -3,19 +3,19 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/deviceprovisionings go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.6.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.3.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v1.0.0 // indirect github.com/golang-jwt/jwt/v4 v4.5.0 // indirect github.com/google/uuid v1.3.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect - golang.org/x/crypto v0.6.0 // indirect - golang.org/x/net v0.7.0 // indirect - golang.org/x/sys v0.5.0 // indirect - golang.org/x/text v0.7.0 // indirect + golang.org/x/crypto v0.7.0 // indirect + golang.org/x/net v0.8.0 // indirect + golang.org/x/sys v0.6.0 // indirect + golang.org/x/text v0.8.0 // indirect ) diff --git a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/go.sum b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/go.sum index 8ba445a8c4da..21718b486698 100644 --- a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/go.sum +++ b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/go.sum @@ -1,13 +1,13 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 h1:rTnT/Jrcm+figWlYz4Ixzt0SJVR2cMC8lvZcimipiEY= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0/go.mod h1:ON4tFdPTwRcgWEaVDrN3584Ef+b7GgSJaXxe5fW9t4M= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 h1:uqM+VoHjVH6zdlkLF2b6O0ZANcHoj3rO0PoQ3jglUJA= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2/go.mod h1:twTKAa1E6hLmSDjLhaCkbTMQKc7p/rNLU40rLxGEOCI= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 h1:leh5DwKv6Ihwi+h60uHtn6UWAxBbZ0q8DwQVMzf61zw= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= -github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0 h1:UE9n9rkJF62ArLb1F3DEjRt8O3jLwMWdSoypKV4f3MU= -github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0/go.mod h1:kgDmCTgBzIEPFElEF+FK0SdjAor06dRq2Go927dnQ6o= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.6.0 h1:8kDqDngH+DmVBiCtIjCFTGa7MBnsIOkF9IccInFEbjk= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.6.0/go.mod h1:bjGvMhVMb+EEm3VRNQawDMUyMMjo+S5ewNjflkep/0Q= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.3.0 h1:vcYCAze6p19qBW7MhZybIsqD8sMV8js0NyQM8JDnVtg= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.3.0/go.mod h1:OQeznEEkTZ9OrhHJoDD8ZDq51FHgXjqtP9z6bEwBq9U= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0 h1:sXr+ck84g/ZlZUOZiNELInmMgOsuGwdjjVkEIde0OtY= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0/go.mod h1:okt5dMMTOFjX/aovMlrjvvXoPMBVSPzk9185BT0+eZM= +github.com/AzureAD/microsoft-authentication-library-for-go v1.0.0 h1:OBhqkivkhkMqLPymWEppkm7vgPQY2XsHoEkaMQ0AdZY= +github.com/AzureAD/microsoft-authentication-library-for-go v1.0.0/go.mod h1:kgDmCTgBzIEPFElEF+FK0SdjAor06dRq2Go927dnQ6o= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= +github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= @@ -18,14 +18,14 @@ github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9 github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -golang.org/x/crypto v0.6.0 h1:qfktjS5LUO+fFKeJXZ+ikTRijMmljikvG68fpMMruSc= -golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= -golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= -golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= +golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= +golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/iotdpsresource_client.go b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/iotdpsresource_client.go index ab14ca731fde..7e76f3ce4395 100644 --- a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/iotdpsresource_client.go +++ b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/iotdpsresource_client.go @@ -48,7 +48,7 @@ func NewIotDpsResourceClient(subscriptionID string, credential azcore.TokenCrede // name is syntactically valid and if the name is usable // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - arguments - Set the name parameter in the OperationInputs structure to the name of the provisioning service to check. // - options - IotDpsResourceClientCheckProvisioningServiceNameAvailabilityOptions contains the optional parameters for the // IotDpsResourceClient.CheckProvisioningServiceNameAvailability method. @@ -79,7 +79,7 @@ func (client *IotDpsResourceClient) checkProvisioningServiceNameAvailabilityCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, arguments) @@ -99,7 +99,7 @@ func (client *IotDpsResourceClient) checkProvisioningServiceNameAvailabilityHand // modified values in a new body to update the provisioning service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - resourceGroupName - Resource group identifier. // - provisioningServiceName - Name of provisioning service to create or update. // - iotDpsDescription - Description of the provisioning service to create or update. @@ -122,7 +122,7 @@ func (client *IotDpsResourceClient) BeginCreateOrUpdate(ctx context.Context, res // modified values in a new body to update the provisioning service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview func (client *IotDpsResourceClient) createOrUpdate(ctx context.Context, resourceGroupName string, provisioningServiceName string, iotDpsDescription ProvisioningServiceDescription, options *IotDpsResourceClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, provisioningServiceName, iotDpsDescription, options) if err != nil { @@ -158,7 +158,7 @@ func (client *IotDpsResourceClient) createOrUpdateCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, iotDpsDescription) @@ -168,7 +168,7 @@ func (client *IotDpsResourceClient) createOrUpdateCreateRequest(ctx context.Cont // name // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - resourceGroupName - The name of the resource group that contains the provisioning service. // - resourceName - The name of the provisioning service. // - privateEndpointConnectionName - The name of the private endpoint connection @@ -191,7 +191,7 @@ func (client *IotDpsResourceClient) BeginCreateOrUpdatePrivateEndpointConnection // name // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview func (client *IotDpsResourceClient) createOrUpdatePrivateEndpointConnection(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, privateEndpointConnection PrivateEndpointConnection, options *IotDpsResourceClientBeginCreateOrUpdatePrivateEndpointConnectionOptions) (*http.Response, error) { req, err := client.createOrUpdatePrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) if err != nil { @@ -231,7 +231,7 @@ func (client *IotDpsResourceClient) createOrUpdatePrivateEndpointConnectionCreat return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, privateEndpointConnection) @@ -240,7 +240,7 @@ func (client *IotDpsResourceClient) createOrUpdatePrivateEndpointConnectionCreat // BeginDelete - Deletes the Provisioning Service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - provisioningServiceName - Name of provisioning service to delete. // - resourceGroupName - Resource group identifier. // - options - IotDpsResourceClientBeginDeleteOptions contains the optional parameters for the IotDpsResourceClient.BeginDelete @@ -260,7 +260,7 @@ func (client *IotDpsResourceClient) BeginDelete(ctx context.Context, provisionin // Delete - Deletes the Provisioning Service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview func (client *IotDpsResourceClient) deleteOperation(ctx context.Context, provisioningServiceName string, resourceGroupName string, options *IotDpsResourceClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, provisioningServiceName, resourceGroupName, options) if err != nil { @@ -296,7 +296,7 @@ func (client *IotDpsResourceClient) deleteCreateRequest(ctx context.Context, pro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -305,7 +305,7 @@ func (client *IotDpsResourceClient) deleteCreateRequest(ctx context.Context, pro // BeginDeletePrivateEndpointConnection - Delete private endpoint connection with the specified name // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - resourceGroupName - The name of the resource group that contains the provisioning service. // - resourceName - The name of the provisioning service. // - privateEndpointConnectionName - The name of the private endpoint connection @@ -326,7 +326,7 @@ func (client *IotDpsResourceClient) BeginDeletePrivateEndpointConnection(ctx con // DeletePrivateEndpointConnection - Delete private endpoint connection with the specified name // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview func (client *IotDpsResourceClient) deletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *IotDpsResourceClientBeginDeletePrivateEndpointConnectionOptions) (*http.Response, error) { req, err := client.deletePrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, resourceName, privateEndpointConnectionName, options) if err != nil { @@ -366,7 +366,7 @@ func (client *IotDpsResourceClient) deletePrivateEndpointConnectionCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -375,7 +375,7 @@ func (client *IotDpsResourceClient) deletePrivateEndpointConnectionCreateRequest // Get - Get the metadata of the provisioning service without SAS keys. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - provisioningServiceName - Name of the provisioning service to retrieve. // - resourceGroupName - Resource group name. // - options - IotDpsResourceClientGetOptions contains the optional parameters for the IotDpsResourceClient.Get method. @@ -414,7 +414,7 @@ func (client *IotDpsResourceClient) getCreateRequest(ctx context.Context, provis return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -432,7 +432,7 @@ func (client *IotDpsResourceClient) getHandleResponse(resp *http.Response) (IotD // GetOperationResult - Gets the status of a long running operation, such as create, update or delete a provisioning service. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - operationID - Operation id corresponding to long running operation. Use this to poll for the status. // - resourceGroupName - Resource group identifier. // - provisioningServiceName - Name of provisioning service that the operation is running on. @@ -479,7 +479,7 @@ func (client *IotDpsResourceClient) getOperationResultCreateRequest(ctx context. } reqQP := req.Raw().URL.Query() reqQP.Set("asyncinfo", asyncinfo) - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -497,7 +497,7 @@ func (client *IotDpsResourceClient) getOperationResultHandleResponse(resp *http. // GetPrivateEndpointConnection - Get private endpoint connection properties // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - resourceGroupName - The name of the resource group that contains the provisioning service. // - resourceName - The name of the provisioning service. // - privateEndpointConnectionName - The name of the private endpoint connection @@ -542,7 +542,7 @@ func (client *IotDpsResourceClient) getPrivateEndpointConnectionCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -560,7 +560,7 @@ func (client *IotDpsResourceClient) getPrivateEndpointConnectionHandleResponse(r // GetPrivateLinkResources - Get the specified private link resource for the given provisioning service // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - resourceGroupName - The name of the resource group that contains the provisioning service. // - resourceName - The name of the provisioning service. // - groupID - The name of the private link resource @@ -605,7 +605,7 @@ func (client *IotDpsResourceClient) getPrivateLinkResourcesCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -622,7 +622,7 @@ func (client *IotDpsResourceClient) getPrivateLinkResourcesHandleResponse(resp * // NewListByResourceGroupPager - Get a list of all provisioning services in the given resource group. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - resourceGroupName - Resource group identifier. // - options - IotDpsResourceClientListByResourceGroupOptions contains the optional parameters for the IotDpsResourceClient.NewListByResourceGroupPager // method. @@ -670,7 +670,7 @@ func (client *IotDpsResourceClient) listByResourceGroupCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -687,7 +687,7 @@ func (client *IotDpsResourceClient) listByResourceGroupHandleResponse(resp *http // NewListBySubscriptionPager - List all the provisioning services for a given subscription id. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - options - IotDpsResourceClientListBySubscriptionOptions contains the optional parameters for the IotDpsResourceClient.NewListBySubscriptionPager // method. func (client *IotDpsResourceClient) NewListBySubscriptionPager(options *IotDpsResourceClientListBySubscriptionOptions) *runtime.Pager[IotDpsResourceClientListBySubscriptionResponse] { @@ -730,7 +730,7 @@ func (client *IotDpsResourceClient) listBySubscriptionCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -747,7 +747,7 @@ func (client *IotDpsResourceClient) listBySubscriptionHandleResponse(resp *http. // NewListKeysPager - List the primary and secondary keys for a provisioning service. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - provisioningServiceName - The provisioning service name to get the shared access keys for. // - resourceGroupName - resource group name // - options - IotDpsResourceClientListKeysOptions contains the optional parameters for the IotDpsResourceClient.NewListKeysPager @@ -800,7 +800,7 @@ func (client *IotDpsResourceClient) listKeysCreateRequest(ctx context.Context, p return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -818,7 +818,7 @@ func (client *IotDpsResourceClient) listKeysHandleResponse(resp *http.Response) // ListKeysForKeyName - List primary and secondary keys for a specific key name // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - provisioningServiceName - Name of the provisioning service. // - keyName - Logical key name to get key-values for. // - resourceGroupName - The name of the resource group that contains the provisioning service. @@ -863,7 +863,7 @@ func (client *IotDpsResourceClient) listKeysForKeyNameCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -881,7 +881,7 @@ func (client *IotDpsResourceClient) listKeysForKeyNameHandleResponse(resp *http. // ListPrivateEndpointConnections - List private endpoint connection properties // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - resourceGroupName - The name of the resource group that contains the provisioning service. // - resourceName - The name of the provisioning service. // - options - IotDpsResourceClientListPrivateEndpointConnectionsOptions contains the optional parameters for the IotDpsResourceClient.ListPrivateEndpointConnections @@ -921,7 +921,7 @@ func (client *IotDpsResourceClient) listPrivateEndpointConnectionsCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -939,7 +939,7 @@ func (client *IotDpsResourceClient) listPrivateEndpointConnectionsHandleResponse // ListPrivateLinkResources - List private link resources for the given provisioning service // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - resourceGroupName - The name of the resource group that contains the provisioning service. // - resourceName - The name of the provisioning service. // - options - IotDpsResourceClientListPrivateLinkResourcesOptions contains the optional parameters for the IotDpsResourceClient.ListPrivateLinkResources @@ -979,7 +979,7 @@ func (client *IotDpsResourceClient) listPrivateLinkResourcesCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -996,7 +996,7 @@ func (client *IotDpsResourceClient) listPrivateLinkResourcesHandleResponse(resp // NewListValidSKUsPager - Gets the list of valid SKUs and tiers for a provisioning service. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - provisioningServiceName - Name of provisioning service. // - resourceGroupName - Name of resource group. // - options - IotDpsResourceClientListValidSKUsOptions contains the optional parameters for the IotDpsResourceClient.NewListValidSKUsPager @@ -1049,7 +1049,7 @@ func (client *IotDpsResourceClient) listValidSKUsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1067,7 +1067,7 @@ func (client *IotDpsResourceClient) listValidSKUsHandleResponse(resp *http.Respo // BeginUpdate - Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - resourceGroupName - Resource group identifier. // - provisioningServiceName - Name of provisioning service to create or update. // - provisioningServiceTags - Updated tag information to set into the provisioning service instance. @@ -1088,7 +1088,7 @@ func (client *IotDpsResourceClient) BeginUpdate(ctx context.Context, resourceGro // Update - Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview func (client *IotDpsResourceClient) update(ctx context.Context, resourceGroupName string, provisioningServiceName string, provisioningServiceTags TagsResource, options *IotDpsResourceClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, provisioningServiceName, provisioningServiceTags, options) if err != nil { @@ -1124,7 +1124,7 @@ func (client *IotDpsResourceClient) updateCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, provisioningServiceTags) diff --git a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/iotdpsresource_client_example_test.go b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/iotdpsresource_client_example_test.go index 2675eaa72924..6f8cae8d8f26 100644 --- a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/iotdpsresource_client_example_test.go +++ b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/iotdpsresource_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGet.json func ExampleIotDpsResourceClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -41,15 +41,29 @@ func ExampleIotDpsResourceClient_Get() { // Type: to.Ptr("Microsoft.Devices/ProvisioningServices"), // ID: to.Ptr("/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService"), // Location: to.Ptr("eastus"), + // Resourcegroup: to.Ptr("myResourceGroup"), + // Subscriptionid: to.Ptr("91d12660-3dec-467a-be2a-213b5544ddc0"), // Tags: map[string]*string{ // }, // Etag: to.Ptr("AAAAAAAADGk="), + // Identity: &armdeviceprovisioningservices.ManagedServiceIdentity{ + // Type: to.Ptr(armdeviceprovisioningservices.ManagedServiceIdentityTypeSystemAssignedUserAssigned), + // PrincipalID: to.Ptr("aa80bd74-a3f0-4f14-b9da-99c5351cf9d5"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-ab578e110ccd"), + // UserAssignedIdentities: map[string]*armdeviceprovisioningservices.UserAssignedIdentity{ + // "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity": &armdeviceprovisioningservices.UserAssignedIdentity{ + // ClientID: to.Ptr("c38f618d-47f6-4260-8b3d-1dd8c130f323"), + // PrincipalID: to.Ptr("f1b0b133-10dc-4985-966f-a98a04675fe9"), + // }, + // }, + // }, // Properties: &armdeviceprovisioningservices.IotDpsPropertiesDescription{ // AllocationPolicy: to.Ptr(armdeviceprovisioningservices.AllocationPolicyHashed), // AuthorizationPolicies: []*armdeviceprovisioningservices.SharedAccessSignatureAuthorizationRuleAccessRightsDescription{ // }, // DeviceProvisioningHostName: to.Ptr("global.azure-devices-provisioning.net"), // IDScope: to.Ptr("0ne00000012"), + // PortalOperationsHostName: to.Ptr("myFirstProvisioningService.services.azure-devices-provisioning.net"), // ServiceOperationsHostName: to.Ptr("myFirstProvisioningService.azure-devices-provisioning.net"), // State: to.Ptr(armdeviceprovisioningservices.StateActive), // }, @@ -61,8 +75,8 @@ func ExampleIotDpsResourceClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSCreate.json -func ExampleIotDpsResourceClient_BeginCreateOrUpdate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSCreate.json +func ExampleIotDpsResourceClient_BeginCreateOrUpdate_dpsCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -98,6 +112,8 @@ func ExampleIotDpsResourceClient_BeginCreateOrUpdate() { // Type: to.Ptr("Microsoft.Devices/ProvisioningServices"), // ID: to.Ptr("/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups//providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService"), // Location: to.Ptr("eastus"), + // Resourcegroup: to.Ptr("myResourceGroup"), + // Subscriptionid: to.Ptr("91d12660-3dec-467a-be2a-213b5544ddc0"), // Tags: map[string]*string{ // }, // Etag: to.Ptr("AAAAAAAADGk="), @@ -108,6 +124,7 @@ func ExampleIotDpsResourceClient_BeginCreateOrUpdate() { // DeviceProvisioningHostName: to.Ptr("global.azure-devices-provisioning.net"), // EnableDataResidency: to.Ptr(false), // IDScope: to.Ptr("0ne00000012"), + // PortalOperationsHostName: to.Ptr("myFirstProvisioningService.services.azure-devices-provisioning.net"), // ServiceOperationsHostName: to.Ptr("myFirstProvisioningService.azure-devices-provisioning.net"), // State: to.Ptr(armdeviceprovisioningservices.StateActive), // }, @@ -119,7 +136,85 @@ func ExampleIotDpsResourceClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSPatch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSUpdate.json +func ExampleIotDpsResourceClient_BeginCreateOrUpdate_dpsUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armdeviceprovisioningservices.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewIotDpsResourceClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myFirstProvisioningService", armdeviceprovisioningservices.ProvisioningServiceDescription{ + Location: to.Ptr("East US"), + Tags: map[string]*string{}, + Identity: &armdeviceprovisioningservices.ManagedServiceIdentity{ + Type: to.Ptr(armdeviceprovisioningservices.ManagedServiceIdentityTypeSystemAssignedUserAssigned), + UserAssignedIdentities: map[string]*armdeviceprovisioningservices.UserAssignedIdentity{ + "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity": {}, + }, + }, + Properties: &armdeviceprovisioningservices.IotDpsPropertiesDescription{ + EnableDataResidency: to.Ptr(false), + }, + SKU: &armdeviceprovisioningservices.IotDpsSKUInfo{ + Name: to.Ptr(armdeviceprovisioningservices.IotDpsSKUS1), + Capacity: to.Ptr[int64](1), + }, + }, 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.ProvisioningServiceDescription = armdeviceprovisioningservices.ProvisioningServiceDescription{ + // Name: to.Ptr("myFirstProvisioningService"), + // Type: to.Ptr("Microsoft.Devices/ProvisioningServices"), + // ID: to.Ptr("/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups//providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService"), + // Location: to.Ptr("eastus"), + // Resourcegroup: to.Ptr("myResourceGroup"), + // Subscriptionid: to.Ptr("91d12660-3dec-467a-be2a-213b5544ddc0"), + // Tags: map[string]*string{ + // }, + // Etag: to.Ptr("AAAAAAAADGk="), + // Identity: &armdeviceprovisioningservices.ManagedServiceIdentity{ + // Type: to.Ptr(armdeviceprovisioningservices.ManagedServiceIdentityTypeSystemAssignedUserAssigned), + // PrincipalID: to.Ptr("aa80bd74-a3f0-4f14-b9da-99c5351cf9d5"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-ab578e110ccd"), + // UserAssignedIdentities: map[string]*armdeviceprovisioningservices.UserAssignedIdentity{ + // "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity": &armdeviceprovisioningservices.UserAssignedIdentity{ + // ClientID: to.Ptr("c38f618d-47f6-4260-8b3d-1dd8c130f323"), + // PrincipalID: to.Ptr("f1b0b133-10dc-4985-966f-a98a04675fe9"), + // }, + // }, + // }, + // Properties: &armdeviceprovisioningservices.IotDpsPropertiesDescription{ + // AllocationPolicy: to.Ptr(armdeviceprovisioningservices.AllocationPolicyHashed), + // AuthorizationPolicies: []*armdeviceprovisioningservices.SharedAccessSignatureAuthorizationRuleAccessRightsDescription{ + // }, + // DeviceProvisioningHostName: to.Ptr("global.azure-devices-provisioning.net"), + // EnableDataResidency: to.Ptr(false), + // IDScope: to.Ptr("0ne00000012"), + // PortalOperationsHostName: to.Ptr("myFirstProvisioningService.services.azure-devices-provisioning.net"), + // ServiceOperationsHostName: to.Ptr("myFirstProvisioningService.azure-devices-provisioning.net"), + // State: to.Ptr(armdeviceprovisioningservices.StateActive), + // }, + // SKU: &armdeviceprovisioningservices.IotDpsSKUInfo{ + // Name: to.Ptr(armdeviceprovisioningservices.IotDpsSKUS1), + // Capacity: to.Ptr[int64](1), + // Tier: to.Ptr("Standard"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSPatch.json func ExampleIotDpsResourceClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -150,14 +245,28 @@ func ExampleIotDpsResourceClient_BeginUpdate() { // Type: to.Ptr("Microsoft.Devices/ProvisioningServices"), // ID: to.Ptr("/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService"), // Location: to.Ptr("eastus"), + // Resourcegroup: to.Ptr("myResourceGroup"), + // Subscriptionid: to.Ptr("91d12660-3dec-467a-be2a-213b5544ddc0"), // Tags: map[string]*string{ // "foo": to.Ptr("bar"), // }, // Etag: to.Ptr("AAAAAAAADGk="), + // Identity: &armdeviceprovisioningservices.ManagedServiceIdentity{ + // Type: to.Ptr(armdeviceprovisioningservices.ManagedServiceIdentityTypeSystemAssignedUserAssigned), + // PrincipalID: to.Ptr("aa80bd74-a3f0-4f14-b9da-99c5351cf9d5"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-ab578e110ccd"), + // UserAssignedIdentities: map[string]*armdeviceprovisioningservices.UserAssignedIdentity{ + // "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity": &armdeviceprovisioningservices.UserAssignedIdentity{ + // ClientID: to.Ptr("c38f618d-47f6-4260-8b3d-1dd8c130f323"), + // PrincipalID: to.Ptr("f1b0b133-10dc-4985-966f-a98a04675fe9"), + // }, + // }, + // }, // Properties: &armdeviceprovisioningservices.IotDpsPropertiesDescription{ // AllocationPolicy: to.Ptr(armdeviceprovisioningservices.AllocationPolicyHashed), // DeviceProvisioningHostName: to.Ptr("global.azure-devices-provisioning.net"), // IDScope: to.Ptr("0ne00000012"), + // PortalOperationsHostName: to.Ptr("myFirstProvisioningService.services.azure-devices-provisioning.net"), // ServiceOperationsHostName: to.Ptr("myFirstProvisioningService.azure-devices-provisioning.net"), // State: to.Ptr(armdeviceprovisioningservices.StateActive), // }, @@ -169,7 +278,7 @@ func ExampleIotDpsResourceClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSDelete.json func ExampleIotDpsResourceClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -190,7 +299,7 @@ func ExampleIotDpsResourceClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSListBySubscription.json func ExampleIotDpsResourceClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -219,13 +328,27 @@ func ExampleIotDpsResourceClient_NewListBySubscriptionPager() { // Type: to.Ptr("Microsoft.Devices/ProvisioningServices"), // ID: to.Ptr("/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService"), // Location: to.Ptr("eastus"), + // Resourcegroup: to.Ptr("myResourceGroup"), + // Subscriptionid: to.Ptr("91d12660-3dec-467a-be2a-213b5544ddc0"), // Tags: map[string]*string{ // }, // Etag: to.Ptr("AAAAAAAADGk="), + // Identity: &armdeviceprovisioningservices.ManagedServiceIdentity{ + // Type: to.Ptr(armdeviceprovisioningservices.ManagedServiceIdentityTypeSystemAssignedUserAssigned), + // PrincipalID: to.Ptr("aa80bd74-a3f0-4f14-b9da-99c5351cf9d5"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-ab578e110ccd"), + // UserAssignedIdentities: map[string]*armdeviceprovisioningservices.UserAssignedIdentity{ + // "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity": &armdeviceprovisioningservices.UserAssignedIdentity{ + // ClientID: to.Ptr("c38f618d-47f6-4260-8b3d-1dd8c130f323"), + // PrincipalID: to.Ptr("f1b0b133-10dc-4985-966f-a98a04675fe9"), + // }, + // }, + // }, // Properties: &armdeviceprovisioningservices.IotDpsPropertiesDescription{ // AllocationPolicy: to.Ptr(armdeviceprovisioningservices.AllocationPolicyHashed), // DeviceProvisioningHostName: to.Ptr("global.azure-devices-provisioning.net"), // IDScope: to.Ptr("0ne00000012"), + // PortalOperationsHostName: to.Ptr("myFirstProvisioningService.services.azure-devices-provisioning.net"), // ServiceOperationsHostName: to.Ptr("myFirstProvisioningService.azure-devices-provisioning.net"), // State: to.Ptr(armdeviceprovisioningservices.StateActive), // }, @@ -240,13 +363,27 @@ func ExampleIotDpsResourceClient_NewListBySubscriptionPager() { // Type: to.Ptr("Microsoft.Devices/ProvisioningServices"), // ID: to.Ptr("/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/mySecondProvisioningService"), // Location: to.Ptr("eastus"), + // Resourcegroup: to.Ptr("myResourceGroup"), + // Subscriptionid: to.Ptr("91d12660-3dec-467a-be2a-213b5544ddc0"), // Tags: map[string]*string{ // }, // Etag: to.Ptr("AAAAAAAADGk="), + // Identity: &armdeviceprovisioningservices.ManagedServiceIdentity{ + // Type: to.Ptr(armdeviceprovisioningservices.ManagedServiceIdentityTypeSystemAssignedUserAssigned), + // PrincipalID: to.Ptr("01341f2b-d497-4117-b5c1-1f1d50b25444"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-ab578e110ccd"), + // UserAssignedIdentities: map[string]*armdeviceprovisioningservices.UserAssignedIdentity{ + // "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity2": &armdeviceprovisioningservices.UserAssignedIdentity{ + // ClientID: to.Ptr("8cd6d250-17dd-4c1b-9847-225237b94c55"), + // PrincipalID: to.Ptr("8785a11f-848a-4d5d-a55b-e381b9e15512"), + // }, + // }, + // }, // Properties: &armdeviceprovisioningservices.IotDpsPropertiesDescription{ // AllocationPolicy: to.Ptr(armdeviceprovisioningservices.AllocationPolicyHashed), // DeviceProvisioningHostName: to.Ptr("global.azure-devices-provisioning.net"), // IDScope: to.Ptr("0ne00000012"), + // PortalOperationsHostName: to.Ptr("myFirstProvisioningService.services.azure-devices-provisioning.net"), // ServiceOperationsHostName: to.Ptr("myFirstProvisioningService.azure-devices-provisioning.net"), // State: to.Ptr(armdeviceprovisioningservices.StateActive), // }, @@ -260,7 +397,7 @@ func ExampleIotDpsResourceClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSListByResourceGroup.json func ExampleIotDpsResourceClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -289,13 +426,27 @@ func ExampleIotDpsResourceClient_NewListByResourceGroupPager() { // Type: to.Ptr("Microsoft.Devices/ProvisioningServices"), // ID: to.Ptr("/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService"), // Location: to.Ptr("eastus"), + // Resourcegroup: to.Ptr("myResourceGroup"), + // Subscriptionid: to.Ptr("91d12660-3dec-467a-be2a-213b5544ddc0"), // Tags: map[string]*string{ // }, // Etag: to.Ptr("AAAAAAAADGk="), + // Identity: &armdeviceprovisioningservices.ManagedServiceIdentity{ + // Type: to.Ptr(armdeviceprovisioningservices.ManagedServiceIdentityTypeSystemAssignedUserAssigned), + // PrincipalID: to.Ptr("aa80bd74-a3f0-4f14-b9da-99c5351cf9d5"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-ab578e110ccd"), + // UserAssignedIdentities: map[string]*armdeviceprovisioningservices.UserAssignedIdentity{ + // "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity": &armdeviceprovisioningservices.UserAssignedIdentity{ + // ClientID: to.Ptr("c38f618d-47f6-4260-8b3d-1dd8c130f323"), + // PrincipalID: to.Ptr("f1b0b133-10dc-4985-966f-a98a04675fe9"), + // }, + // }, + // }, // Properties: &armdeviceprovisioningservices.IotDpsPropertiesDescription{ // AllocationPolicy: to.Ptr(armdeviceprovisioningservices.AllocationPolicyHashed), // DeviceProvisioningHostName: to.Ptr("global.azure-devices-provisioning.net"), // IDScope: to.Ptr("0ne00000012"), + // PortalOperationsHostName: to.Ptr("myFirstProvisioningService.services.azure-devices-provisioning.net"), // ServiceOperationsHostName: to.Ptr("myFirstProvisioningService.azure-devices-provisioning.net"), // State: to.Ptr(armdeviceprovisioningservices.StateActive), // }, @@ -310,13 +461,27 @@ func ExampleIotDpsResourceClient_NewListByResourceGroupPager() { // Type: to.Ptr("Microsoft.Devices/ProvisioningServices"), // ID: to.Ptr("/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/mySecondProvisioningService"), // Location: to.Ptr("eastus"), + // Resourcegroup: to.Ptr("myResourceGroup"), + // Subscriptionid: to.Ptr("91d12660-3dec-467a-be2a-213b5544ddc0"), // Tags: map[string]*string{ // }, // Etag: to.Ptr("AAAAAAAADGk="), + // Identity: &armdeviceprovisioningservices.ManagedServiceIdentity{ + // Type: to.Ptr(armdeviceprovisioningservices.ManagedServiceIdentityTypeSystemAssignedUserAssigned), + // PrincipalID: to.Ptr("01341f2b-d497-4117-b5c1-1f1d50b25444"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-ab578e110ccd"), + // UserAssignedIdentities: map[string]*armdeviceprovisioningservices.UserAssignedIdentity{ + // "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity2": &armdeviceprovisioningservices.UserAssignedIdentity{ + // ClientID: to.Ptr("8cd6d250-17dd-4c1b-9847-225237b94c55"), + // PrincipalID: to.Ptr("8785a11f-848a-4d5d-a55b-e381b9e15512"), + // }, + // }, + // }, // Properties: &armdeviceprovisioningservices.IotDpsPropertiesDescription{ // AllocationPolicy: to.Ptr(armdeviceprovisioningservices.AllocationPolicyHashed), // DeviceProvisioningHostName: to.Ptr("global.azure-devices-provisioning.net"), // IDScope: to.Ptr("0ne00000012"), + // PortalOperationsHostName: to.Ptr("myFirstProvisioningService.services.azure-devices-provisioning.net"), // ServiceOperationsHostName: to.Ptr("mySecondProvisioningService.azure-devices-provisioning.net"), // State: to.Ptr(armdeviceprovisioningservices.StateActive), // }, @@ -330,7 +495,7 @@ func ExampleIotDpsResourceClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSGetOperationResult.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGetOperationResult.json func ExampleIotDpsResourceClient_GetOperationResult() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -353,7 +518,7 @@ func ExampleIotDpsResourceClient_GetOperationResult() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSGetValidSku.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGetValidSku.json func ExampleIotDpsResourceClient_NewListValidSKUsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -384,7 +549,7 @@ func ExampleIotDpsResourceClient_NewListValidSKUsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSCheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSCheckNameAvailability.json func ExampleIotDpsResourceClient_CheckProvisioningServiceNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -411,7 +576,7 @@ func ExampleIotDpsResourceClient_CheckProvisioningServiceNameAvailability() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSListKeys.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSListKeys.json func ExampleIotDpsResourceClient_NewListKeysPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -451,7 +616,7 @@ func ExampleIotDpsResourceClient_NewListKeysPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSGetKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGetKey.json func ExampleIotDpsResourceClient_ListKeysForKeyName() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -477,7 +642,7 @@ func ExampleIotDpsResourceClient_ListKeysForKeyName() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSListPrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSListPrivateLinkResources.json func ExampleIotDpsResourceClient_ListPrivateLinkResources() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -512,7 +677,7 @@ func ExampleIotDpsResourceClient_ListPrivateLinkResources() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSGetPrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGetPrivateLinkResources.json func ExampleIotDpsResourceClient_GetPrivateLinkResources() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -544,7 +709,7 @@ func ExampleIotDpsResourceClient_GetPrivateLinkResources() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSListPrivateEndpointConnections.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSListPrivateEndpointConnections.json func ExampleIotDpsResourceClient_ListPrivateEndpointConnections() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -580,7 +745,7 @@ func ExampleIotDpsResourceClient_ListPrivateEndpointConnections() { // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSGetPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGetPrivateEndpointConnection.json func ExampleIotDpsResourceClient_GetPrivateEndpointConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -615,7 +780,7 @@ func ExampleIotDpsResourceClient_GetPrivateEndpointConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSCreateOrUpdatePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSCreateOrUpdatePrivateEndpointConnection.json func ExampleIotDpsResourceClient_BeginCreateOrUpdatePrivateEndpointConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -661,7 +826,7 @@ func ExampleIotDpsResourceClient_BeginCreateOrUpdatePrivateEndpointConnection() // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSDeletePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSDeletePrivateEndpointConnection.json func ExampleIotDpsResourceClient_BeginDeletePrivateEndpointConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/models.go b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/models.go index b6f505849ee3..60f0a412ecee 100644 --- a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/models.go +++ b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/models.go @@ -14,70 +14,61 @@ import "time" // AsyncOperationResult - Result of a long running operation. type AsyncOperationResult struct { // Error message containing code, description and details - Error *ErrorMessage `json:"error,omitempty"` + Error *ErrorMessage // current status of a long running operation. - Status *string `json:"status,omitempty"` -} - -// CertificateBodyDescription - The JSON-serialized X509 Certificate. -type CertificateBodyDescription struct { - // Base-64 representation of the X509 leaf certificate .cer file or just .pem file content. - Certificate *string `json:"certificate,omitempty"` - - // True indicates that the certificate will be created in verified state and proof of possession will not be required. - IsVerified *bool `json:"isVerified,omitempty"` + Status *string } // CertificateListDescription - The JSON-serialized array of Certificate objects. type CertificateListDescription struct { // The array of Certificate objects. - Value []*CertificateResponse `json:"value,omitempty"` + Value []*CertificateResponse } // CertificateProperties - The description of an X509 CA Certificate. type CertificateProperties struct { // base-64 representation of X509 certificate .cer file or just .pem file content. - Certificate []byte `json:"certificate,omitempty"` + Certificate []byte // Determines whether certificate has been verified. - IsVerified *bool `json:"isVerified,omitempty"` + IsVerified *bool // READ-ONLY; The certificate's creation date and time. - Created *time.Time `json:"created,omitempty" azure:"ro"` + Created *time.Time // READ-ONLY; The certificate's expiration date and time. - Expiry *time.Time `json:"expiry,omitempty" azure:"ro"` + Expiry *time.Time // READ-ONLY; The certificate's subject name. - Subject *string `json:"subject,omitempty" azure:"ro"` + Subject *string // READ-ONLY; The certificate's thumbprint. - Thumbprint *string `json:"thumbprint,omitempty" azure:"ro"` + Thumbprint *string // READ-ONLY; The certificate's last update date and time. - Updated *time.Time `json:"updated,omitempty" azure:"ro"` + Updated *time.Time } // CertificateResponse - The X509 Certificate. type CertificateResponse struct { // properties of a certificate - Properties *CertificateProperties `json:"properties,omitempty"` + Properties *CertificateProperties // READ-ONLY; The entity tag. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The name of the certificate. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Metadata pertaining to creation and last modification of the resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // DpsCertificateClientCreateOrUpdateOptions contains the optional parameters for the DpsCertificateClient.CreateOrUpdate @@ -160,113 +151,101 @@ type DpsCertificateClientVerifyCertificateOptions struct { CertificateRawBytes []byte } -// ErrorDetails - Error details. -type ErrorDetails struct { - // READ-ONLY; The error code. - Code *string `json:"code,omitempty" azure:"ro"` - - // READ-ONLY; The error details. - Details *string `json:"details,omitempty" azure:"ro"` - - // READ-ONLY; The HTTP status code. - HTTPStatusCode *string `json:"httpStatusCode,omitempty" azure:"ro"` - - // READ-ONLY; The error message. - Message *string `json:"message,omitempty" azure:"ro"` -} - // ErrorMessage - Error response containing message and code. type ErrorMessage struct { // standard error code - Code *string `json:"code,omitempty"` + Code *string // detailed summary of error - Details *string `json:"details,omitempty"` + Details *string // standard error description - Message *string `json:"message,omitempty"` + Message *string } // GroupIDInformation - The group information for creating a private endpoint on a provisioning service type GroupIDInformation struct { // REQUIRED; The properties for a group information object - Properties *GroupIDInformationProperties `json:"properties,omitempty"` + Properties *GroupIDInformationProperties // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // GroupIDInformationProperties - The properties for a group information object type GroupIDInformationProperties struct { // The group id - GroupID *string `json:"groupId,omitempty"` + GroupID *string // The required members for a specific group id - RequiredMembers []*string `json:"requiredMembers,omitempty"` + RequiredMembers []*string // The required DNS zones for a specific group id - RequiredZoneNames []*string `json:"requiredZoneNames,omitempty"` + RequiredZoneNames []*string } // IPFilterRule - The IP filter rules for a provisioning Service. type IPFilterRule struct { // REQUIRED; The desired action for requests captured by this rule. - Action *IPFilterActionType `json:"action,omitempty"` + Action *IPFilterActionType // REQUIRED; The name of the IP filter rule. - FilterName *string `json:"filterName,omitempty"` + FilterName *string // REQUIRED; A string that contains the IP address range in CIDR notation for the rule. - IPMask *string `json:"ipMask,omitempty"` + IPMask *string // Target for requests captured by this rule. - Target *IPFilterTargetType `json:"target,omitempty"` + Target *IPFilterTargetType } // IotDpsPropertiesDescription - the service specific properties of a provisioning service, including keys, linked iot hubs, // current state, and system generated properties such as hostname and idScope type IotDpsPropertiesDescription struct { // Allocation policy to be used by this provisioning service. - AllocationPolicy *AllocationPolicy `json:"allocationPolicy,omitempty"` + AllocationPolicy *AllocationPolicy // List of authorization keys for a provisioning service. - AuthorizationPolicies []*SharedAccessSignatureAuthorizationRuleAccessRightsDescription `json:"authorizationPolicies,omitempty"` + AuthorizationPolicies []*SharedAccessSignatureAuthorizationRuleAccessRightsDescription // Optional. Indicates if the DPS instance has Data Residency enabled, removing the cross geo-pair disaster recovery. - EnableDataResidency *bool `json:"enableDataResidency,omitempty"` + EnableDataResidency *bool // The IP filter rules. - IPFilterRules []*IPFilterRule `json:"ipFilterRules,omitempty"` + IPFilterRules []*IPFilterRule // List of IoT hubs associated with this provisioning service. - IotHubs []*IotHubDefinitionDescription `json:"iotHubs,omitempty"` + IotHubs []*IotHubDefinitionDescription + + // Portal endpoint to enable CORS for this provisioning service. + PortalOperationsHostName *string // Private endpoint connections created on this IotHub - PrivateEndpointConnections []*PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + PrivateEndpointConnections []*PrivateEndpointConnection // The ARM provisioning state of the provisioning service. - ProvisioningState *string `json:"provisioningState,omitempty"` + ProvisioningState *string // Whether requests from Public Network are allowed - PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + PublicNetworkAccess *PublicNetworkAccess // Current state of the provisioning service. - State *State `json:"state,omitempty"` + State *State // READ-ONLY; Device endpoint for this provisioning service. - DeviceProvisioningHostName *string `json:"deviceProvisioningHostName,omitempty" azure:"ro"` + DeviceProvisioningHostName *string // READ-ONLY; Unique identifier of this provisioning service. - IDScope *string `json:"idScope,omitempty" azure:"ro"` + IDScope *string // READ-ONLY; Service endpoint for provisioning service. - ServiceOperationsHostName *string `json:"serviceOperationsHostName,omitempty" azure:"ro"` + ServiceOperationsHostName *string } // IotDpsResourceClientBeginCreateOrUpdateOptions contains the optional parameters for the IotDpsResourceClient.BeginCreateOrUpdate @@ -375,95 +354,115 @@ type IotDpsResourceClientListValidSKUsOptions struct { // IotDpsSKUDefinition - Available SKUs of tier and units. type IotDpsSKUDefinition struct { // Sku name. - Name *IotDpsSKU `json:"name,omitempty"` + Name *IotDpsSKU } // IotDpsSKUDefinitionListResult - List of available SKUs. type IotDpsSKUDefinitionListResult struct { // The list of SKUs - Value []*IotDpsSKUDefinition `json:"value,omitempty"` + Value []*IotDpsSKUDefinition // READ-ONLY; The next link. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // IotDpsSKUInfo - List of possible provisioning service SKUs. type IotDpsSKUInfo struct { // The number of units to provision - Capacity *int64 `json:"capacity,omitempty"` + Capacity *int64 // Sku name. - Name *IotDpsSKU `json:"name,omitempty"` + Name *IotDpsSKU // READ-ONLY; Pricing tier name of the provisioning service. - Tier *string `json:"tier,omitempty" azure:"ro"` + Tier *string } // IotHubDefinitionDescription - Description of the IoT hub. type IotHubDefinitionDescription struct { // REQUIRED; Connection string of the IoT hub. - ConnectionString *string `json:"connectionString,omitempty"` + ConnectionString *string // REQUIRED; ARM region of the IoT hub. - Location *string `json:"location,omitempty"` + Location *string // weight to apply for a given iot h. - AllocationWeight *int32 `json:"allocationWeight,omitempty"` + AllocationWeight *int32 // flag for applying allocationPolicy or not for a given iot hub. - ApplyAllocationPolicy *bool `json:"applyAllocationPolicy,omitempty"` + ApplyAllocationPolicy *bool // READ-ONLY; Host name of the IoT hub. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string +} + +// ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities) +type ManagedServiceIdentity struct { + // REQUIRED; Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + Type *ManagedServiceIdentityType + + // The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + // resource ids in the form: + // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + // The dictionary values can be empty objects ({}) in + // requests. + UserAssignedIdentities map[string]*UserAssignedIdentity + + // READ-ONLY; The service principal ID of the system assigned identity. This property will only be provided for a system assigned + // identity. + PrincipalID *string + + // READ-ONLY; The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + TenantID *string } // NameAvailabilityInfo - Description of name availability. type NameAvailabilityInfo struct { // message containing a detailed reason name is unavailable - Message *string `json:"message,omitempty"` + Message *string // specifies if a name is available or not - NameAvailable *bool `json:"nameAvailable,omitempty"` + NameAvailable *bool // specifies the reason a name is unavailable - Reason *NameUnavailabilityReason `json:"reason,omitempty"` + Reason *NameUnavailabilityReason } // Operation - Provisioning Service REST API operation. type Operation struct { // The object that represents the operation. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // READ-ONLY; Operation name: {provider}/{resource}/{read | write | action | delete} - Name *string `json:"name,omitempty" azure:"ro"` + Name *string } // OperationDisplay - The object that represents the operation. type OperationDisplay struct { // READ-ONLY; Name of the operation. - Operation *string `json:"operation,omitempty" azure:"ro"` + Operation *string // READ-ONLY; Service provider: Microsoft Devices. - Provider *string `json:"provider,omitempty" azure:"ro"` + Provider *string // READ-ONLY; Resource Type: ProvisioningServices. - Resource *string `json:"resource,omitempty" azure:"ro"` + Resource *string } // OperationInputs - Input values for operation results call. type OperationInputs struct { // REQUIRED; The name of the Provisioning Service to check. - Name *string `json:"name,omitempty"` + Name *string } // OperationListResult - Result of the request to list provisioning service operations. It contains a list of operations and // a URL link to get the next set of results. type OperationListResult struct { // READ-ONLY; URL to get the next set of operation list results if there are any. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string // READ-ONLY; Provisioning service operations supported by the Microsoft.Devices resource provider. - Value []*Operation `json:"value,omitempty" azure:"ro"` + Value []*Operation } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -474,209 +473,209 @@ type OperationsClientListOptions struct { // PrivateEndpoint - The private endpoint property of a private endpoint connection type PrivateEndpoint struct { // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string } // PrivateEndpointConnection - The private endpoint connection of a provisioning service type PrivateEndpointConnection struct { // REQUIRED; The properties of a private endpoint connection - Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Properties *PrivateEndpointConnectionProperties // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Metadata pertaining to creation and last modification of the resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // PrivateEndpointConnectionProperties - The properties of a private endpoint connection type PrivateEndpointConnectionProperties struct { // REQUIRED; The current state of a private endpoint connection - PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState // The private endpoint property of a private endpoint connection - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpoint *PrivateEndpoint } // PrivateLinkResources - The available private link resources for a provisioning service type PrivateLinkResources struct { // The list of available private link resources for a provisioning service - Value []*GroupIDInformation `json:"value,omitempty"` + Value []*GroupIDInformation } // PrivateLinkServiceConnectionState - The current state of a private endpoint connection type PrivateLinkServiceConnectionState struct { // REQUIRED; The description for the current state of a private endpoint connection - Description *string `json:"description,omitempty"` + Description *string // REQUIRED; The status of a private endpoint connection - Status *PrivateLinkServiceConnectionStatus `json:"status,omitempty"` + Status *PrivateLinkServiceConnectionStatus // Actions required for a private endpoint connection - ActionsRequired *string `json:"actionsRequired,omitempty"` + ActionsRequired *string } // ProvisioningServiceDescription - The description of the provisioning service. type ProvisioningServiceDescription struct { // REQUIRED; The resource location. - Location *string `json:"location,omitempty"` + Location *string // REQUIRED; Service specific properties for a provisioning service - Properties *IotDpsPropertiesDescription `json:"properties,omitempty"` + Properties *IotDpsPropertiesDescription // REQUIRED; Sku info for a provisioning Service. - SKU *IotDpsSKUInfo `json:"sku,omitempty"` + SKU *IotDpsSKUInfo // The Etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal // ETag convention. - Etag *string `json:"etag,omitempty"` + Etag *string + + // The managed identities for a provisioning service. + Identity *ManagedServiceIdentity + + // The resource group of the resource. + Resourcegroup *string + + // The subscription id of the resource. + Subscriptionid *string // The resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; Metadata pertaining to creation and last modification of the resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // ProvisioningServiceDescriptionListResult - List of provisioning service descriptions. type ProvisioningServiceDescriptionListResult struct { // List of provisioning service descriptions. - Value []*ProvisioningServiceDescription `json:"value,omitempty"` + Value []*ProvisioningServiceDescription // READ-ONLY; the next link - NextLink *string `json:"nextLink,omitempty" azure:"ro"` -} - -// Resource - The common properties of an Azure resource. -type Resource struct { - // REQUIRED; The resource location. - Location *string `json:"location,omitempty"` - - // The resource tags. - Tags map[string]*string `json:"tags,omitempty"` - - // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The resource name. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + NextLink *string } // SharedAccessSignatureAuthorizationRuleAccessRightsDescription - Description of the shared access key. type SharedAccessSignatureAuthorizationRuleAccessRightsDescription struct { // REQUIRED; Name of the key. - KeyName *string `json:"keyName,omitempty"` + KeyName *string // REQUIRED; Rights that this key has. - Rights *AccessRightsDescription `json:"rights,omitempty"` + Rights *AccessRightsDescription // Primary SAS key value. - PrimaryKey *string `json:"primaryKey,omitempty"` + PrimaryKey *string // Secondary SAS key value. - SecondaryKey *string `json:"secondaryKey,omitempty"` + SecondaryKey *string } // SharedAccessSignatureAuthorizationRuleListResult - List of shared access keys. type SharedAccessSignatureAuthorizationRuleListResult struct { // The list of shared access policies. - Value []*SharedAccessSignatureAuthorizationRuleAccessRightsDescription `json:"value,omitempty"` + Value []*SharedAccessSignatureAuthorizationRuleAccessRightsDescription // READ-ONLY; The next link. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` + NextLink *string } // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { // The timestamp of resource creation (UTC). - CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAt *time.Time // The identity that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` + CreatedBy *string // The type of identity that created the resource. - CreatedByType *CreatedByType `json:"createdByType,omitempty"` + CreatedByType *CreatedByType // The timestamp of resource last modification (UTC) - LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` + LastModifiedAt *time.Time // The identity that last modified the resource. - LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + LastModifiedBy *string // The type of identity that last modified the resource. - LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` + LastModifiedByType *CreatedByType } // TagsResource - A container holding only the Tags for a resource, allowing the user to update the tags on a Provisioning // Service instance. type TagsResource struct { // Resource tags - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string +} + +// UserAssignedIdentity - User assigned identity properties +type UserAssignedIdentity struct { + // READ-ONLY; The client ID of the assigned identity. + ClientID *string + + // READ-ONLY; The principal ID of the assigned identity. + PrincipalID *string } // VerificationCodeRequest - The JSON-serialized leaf certificate type VerificationCodeRequest struct { // base-64 representation of X509 certificate .cer file or just .pem file content. - Certificate *string `json:"certificate,omitempty"` + Certificate *string } // VerificationCodeResponse - Description of the response of the verification code. type VerificationCodeResponse struct { - Properties *VerificationCodeResponseProperties `json:"properties,omitempty"` + Properties *VerificationCodeResponseProperties // READ-ONLY; Request etag. - Etag *string `json:"etag,omitempty" azure:"ro"` + Etag *string // READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty" azure:"ro"` + ID *string // READ-ONLY; Name of certificate. - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The resource type. - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } type VerificationCodeResponseProperties struct { // base-64 representation of X509 certificate .cer file or just .pem file content. - Certificate []byte `json:"certificate,omitempty"` + Certificate []byte // Certificate created time. - Created *string `json:"created,omitempty"` + Created *string // Code expiry. - Expiry *string `json:"expiry,omitempty"` + Expiry *string // Indicate if the certificate is verified by owner of private key. - IsVerified *bool `json:"isVerified,omitempty"` + IsVerified *bool // Certificate subject. - Subject *string `json:"subject,omitempty"` + Subject *string // Certificate thumbprint. - Thumbprint *string `json:"thumbprint,omitempty"` + Thumbprint *string // Certificate updated time. - Updated *string `json:"updated,omitempty"` + Updated *string // Verification code. - VerificationCode *string `json:"verificationCode,omitempty"` + VerificationCode *string } diff --git a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/models_serde.go b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/models_serde.go index 2e762ba9dee9..be7ebefcdddb 100644 --- a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/models_serde.go +++ b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/models_serde.go @@ -48,37 +48,6 @@ func (a *AsyncOperationResult) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CertificateBodyDescription. -func (c CertificateBodyDescription) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "certificate", c.Certificate) - populate(objectMap, "isVerified", c.IsVerified) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CertificateBodyDescription. -func (c *CertificateBodyDescription) 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 "certificate": - err = unpopulate(val, "Certificate", &c.Certificate) - delete(rawMsg, key) - case "isVerified": - err = unpopulate(val, "IsVerified", &c.IsVerified) - 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 CertificateListDescription. func (c CertificateListDescription) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -204,45 +173,6 @@ func (c *CertificateResponse) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ErrorDetails. -func (e ErrorDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "code", e.Code) - populate(objectMap, "details", e.Details) - populate(objectMap, "httpStatusCode", e.HTTPStatusCode) - populate(objectMap, "message", e.Message) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetails. -func (e *ErrorDetails) 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 "code": - err = unpopulate(val, "Code", &e.Code) - delete(rawMsg, key) - case "details": - err = unpopulate(val, "Details", &e.Details) - delete(rawMsg, key) - case "httpStatusCode": - err = unpopulate(val, "HTTPStatusCode", &e.HTTPStatusCode) - delete(rawMsg, key) - case "message": - err = unpopulate(val, "Message", &e.Message) - 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 ErrorMessage. func (e ErrorMessage) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -401,6 +331,7 @@ func (i IotDpsPropertiesDescription) MarshalJSON() ([]byte, error) { populate(objectMap, "idScope", i.IDScope) populate(objectMap, "ipFilterRules", i.IPFilterRules) populate(objectMap, "iotHubs", i.IotHubs) + populate(objectMap, "portalOperationsHostName", i.PortalOperationsHostName) populate(objectMap, "privateEndpointConnections", i.PrivateEndpointConnections) populate(objectMap, "provisioningState", i.ProvisioningState) populate(objectMap, "publicNetworkAccess", i.PublicNetworkAccess) @@ -439,6 +370,9 @@ func (i *IotDpsPropertiesDescription) UnmarshalJSON(data []byte) error { case "iotHubs": err = unpopulate(val, "IotHubs", &i.IotHubs) delete(rawMsg, key) + case "portalOperationsHostName": + err = unpopulate(val, "PortalOperationsHostName", &i.PortalOperationsHostName) + delete(rawMsg, key) case "privateEndpointConnections": err = unpopulate(val, "PrivateEndpointConnections", &i.PrivateEndpointConnections) delete(rawMsg, key) @@ -598,6 +532,45 @@ func (i *IotHubDefinitionDescription) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ManagedServiceIdentity. +func (m ManagedServiceIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "principalId", m.PrincipalID) + populate(objectMap, "tenantId", m.TenantID) + populate(objectMap, "type", m.Type) + populate(objectMap, "userAssignedIdentities", m.UserAssignedIdentities) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedServiceIdentity. +func (m *ManagedServiceIdentity) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "principalId": + err = unpopulate(val, "PrincipalID", &m.PrincipalID) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &m.TenantID) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + delete(rawMsg, key) + case "userAssignedIdentities": + err = unpopulate(val, "UserAssignedIdentities", &m.UserAssignedIdentities) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type NameAvailabilityInfo. func (n NameAvailabilityInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -925,10 +898,13 @@ func (p ProvisioningServiceDescription) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "etag", p.Etag) populate(objectMap, "id", p.ID) + populate(objectMap, "identity", p.Identity) populate(objectMap, "location", p.Location) populate(objectMap, "name", p.Name) populate(objectMap, "properties", p.Properties) + populate(objectMap, "resourcegroup", p.Resourcegroup) populate(objectMap, "sku", p.SKU) + populate(objectMap, "subscriptionid", p.Subscriptionid) populate(objectMap, "systemData", p.SystemData) populate(objectMap, "tags", p.Tags) populate(objectMap, "type", p.Type) @@ -950,6 +926,9 @@ func (p *ProvisioningServiceDescription) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &p.ID) delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &p.Identity) + delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &p.Location) delete(rawMsg, key) @@ -959,9 +938,15 @@ func (p *ProvisioningServiceDescription) UnmarshalJSON(data []byte) error { case "properties": err = unpopulate(val, "Properties", &p.Properties) delete(rawMsg, key) + case "resourcegroup": + err = unpopulate(val, "Resourcegroup", &p.Resourcegroup) + delete(rawMsg, key) case "sku": err = unpopulate(val, "SKU", &p.SKU) delete(rawMsg, key) + case "subscriptionid": + err = unpopulate(val, "Subscriptionid", &p.Subscriptionid) + delete(rawMsg, key) case "systemData": err = unpopulate(val, "SystemData", &p.SystemData) delete(rawMsg, key) @@ -1010,49 +995,6 @@ func (p *ProvisioningServiceDescriptionListResult) UnmarshalJSON(data []byte) er return nil } -// MarshalJSON implements the json.Marshaller interface for type Resource. -func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "id", r.ID) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type Resource. -func (r *Resource) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", r, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &r.ID) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &r.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &r.Name) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &r.Tags) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &r.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", r, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type SharedAccessSignatureAuthorizationRuleAccessRightsDescription. func (s SharedAccessSignatureAuthorizationRuleAccessRightsDescription) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -1197,6 +1139,37 @@ func (t *TagsResource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity. +func (u UserAssignedIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientId", u.ClientID) + populate(objectMap, "principalId", u.PrincipalID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentity. +func (u *UserAssignedIdentity) 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", u, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "clientId": + err = unpopulate(val, "ClientID", &u.ClientID) + delete(rawMsg, key) + case "principalId": + err = unpopulate(val, "PrincipalID", &u.PrincipalID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", u, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type VerificationCodeRequest. func (v VerificationCodeRequest) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) diff --git a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/operations_client.go b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/operations_client.go index b01c10a3e0a0..5aa94d6b4b98 100644 --- a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/operations_client.go +++ b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/operations_client.go @@ -40,7 +40,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - Lists all of the available Microsoft.Devices REST API operations. // -// Generated from API version 2022-02-05 +// Generated from API version 2023-03-01-preview // - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ @@ -78,7 +78,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-05") + reqQP.Set("api-version", "2023-03-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/operations_client_example_test.go b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/operations_client_example_test.go index 8c4875aa00d4..c0027d4ad079 100644 --- a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/operations_client_example_test.go +++ b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/operations_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0d41e635294dce73dfa99b07f3da4b68a9c9e29c/specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSOperations.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil {