From b6bbd4194e1f1c7197e439644db7420b33f61e36 Mon Sep 17 00:00:00 2001 From: Alancere <804873052@qq.com> Date: Wed, 18 May 2022 13:57:25 +0800 Subject: [PATCH] [Release] sdk/resourcemanager/iotcentral/armiotcentral/1.0.0 generation from spec commit: d55b8005f05b040b852c15e74a0f3e36494a15e1 --- .../iotcentral/armiotcentral/CHANGELOG.md | 106 ++++++ .../iotcentral/armiotcentral/autorest.md | 7 +- .../iotcentral/armiotcentral/go.mod | 12 +- .../iotcentral/armiotcentral/go.sum | 44 +-- .../ze_generated_example_apps_client_test.go | 91 +++-- ...enerated_example_operations_client_test.go | 3 +- ..._privateendpointconnections_client_test.go | 131 -------- ...erated_example_privatelinks_client_test.go | 67 ---- .../armiotcentral/zz_generated_apps_client.go | 80 +++-- .../armiotcentral/zz_generated_constants.go | 116 +------ .../armiotcentral/zz_generated_models.go | 270 ++------------- .../zz_generated_models_serde.go | 177 +--------- .../zz_generated_operations_client.go | 9 +- ...rated_privateendpointconnections_client.go | 312 ------------------ .../zz_generated_privatelinks_client.go | 177 ---------- .../zz_generated_response_types.go | 32 +- .../zz_generated_time_rfc3339.go | 85 ----- 17 files changed, 256 insertions(+), 1463 deletions(-) delete mode 100644 sdk/resourcemanager/iotcentral/armiotcentral/ze_generated_example_privateendpointconnections_client_test.go delete mode 100644 sdk/resourcemanager/iotcentral/armiotcentral/ze_generated_example_privatelinks_client_test.go delete mode 100644 sdk/resourcemanager/iotcentral/armiotcentral/zz_generated_privateendpointconnections_client.go delete mode 100644 sdk/resourcemanager/iotcentral/armiotcentral/zz_generated_privatelinks_client.go delete mode 100644 sdk/resourcemanager/iotcentral/armiotcentral/zz_generated_time_rfc3339.go diff --git a/sdk/resourcemanager/iotcentral/armiotcentral/CHANGELOG.md b/sdk/resourcemanager/iotcentral/armiotcentral/CHANGELOG.md index e38c342e7657..a91b74cdf6d2 100644 --- a/sdk/resourcemanager/iotcentral/armiotcentral/CHANGELOG.md +++ b/sdk/resourcemanager/iotcentral/armiotcentral/CHANGELOG.md @@ -1,5 +1,111 @@ # Release History +## 1.0.0 (2022-05-18) +### Breaking Changes + +- Function `*AppsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[AppsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[AppsClientCreateOrUpdateResponse], error)` +- Function `*AppsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[AppsClientUpdateResponse], error)` to `(*runtime.Poller[AppsClientUpdateResponse], error)` +- Function `*AppsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[AppsClientDeleteResponse], error)` to `(*runtime.Poller[AppsClientDeleteResponse], error)` +- Const `ProvisioningStateDeleting` has been removed +- Const `PrivateEndpointConnectionProvisioningStateFailed` has been removed +- Const `ProvisioningStateCanceled` has been removed +- Const `PrivateEndpointServiceConnectionStatusApproved` has been removed +- Const `NetworkActionAllow` has been removed +- Const `CreatedByTypeManagedIdentity` has been removed +- Const `CreatedByTypeUser` has been removed +- Const `PrivateEndpointConnectionProvisioningStateSucceeded` has been removed +- Const `ProvisioningStateFailed` has been removed +- Const `ProvisioningStateCreating` has been removed +- Const `PrivateEndpointServiceConnectionStatusRejected` has been removed +- Const `PrivateEndpointConnectionProvisioningStateCreating` has been removed +- Const `CreatedByTypeApplication` has been removed +- Const `ProvisioningStateUpdating` has been removed +- Const `PrivateEndpointConnectionProvisioningStateDeleting` has been removed +- Const `CreatedByTypeKey` has been removed +- Const `PublicNetworkAccessEnabled` has been removed +- Const `PrivateEndpointServiceConnectionStatusPending` has been removed +- Const `NetworkActionDeny` has been removed +- Const `ProvisioningStateSucceeded` has been removed +- Const `PublicNetworkAccessDisabled` has been removed +- Function `ErrorDetail.MarshalJSON` has been removed +- Function `NewPrivateLinksClient` has been removed +- Function `NewPrivateEndpointConnectionsClient` has been removed +- Function `timeRFC3339.MarshalJSON` has been removed +- Function `*PrivateEndpointConnectionsClient.Get` has been removed +- Function `OperationListResult.MarshalJSON` has been removed +- Function `PrivateEndpointConnectionListResult.MarshalJSON` has been removed +- Function `PrivateLinkResourceProperties.MarshalJSON` has been removed +- Function `AppProperties.MarshalJSON` has been removed +- Function `*PrivateLinksClient.NewListPager` has been removed +- Function `PossibleProvisioningStateValues` has been removed +- Function `*SystemData.UnmarshalJSON` has been removed +- Function `AppTemplate.MarshalJSON` has been removed +- Function `PossibleNetworkActionValues` has been removed +- Function `PrivateEndpointConnectionProperties.MarshalJSON` has been removed +- Function `*PrivateEndpointConnectionsClient.BeginDelete` has been removed +- Function `AppTemplatesResult.MarshalJSON` has been removed +- Function `timeRFC3339.MarshalText` has been removed +- Function `*timeRFC3339.Parse` has been removed +- Function `*PrivateLinksClient.Get` has been removed +- Function `AppListResult.MarshalJSON` has been removed +- Function `PossiblePublicNetworkAccessValues` has been removed +- Function `PossiblePrivateEndpointServiceConnectionStatusValues` has been removed +- Function `*PrivateEndpointConnectionsClient.BeginCreate` has been removed +- Function `PossibleCreatedByTypeValues` has been removed +- Function `*timeRFC3339.UnmarshalText` has been removed +- Function `PrivateLinkResourceListResult.MarshalJSON` has been removed +- Function `SystemData.MarshalJSON` has been removed +- Function `TrackedResource.MarshalJSON` has been removed +- Function `NetworkRuleSets.MarshalJSON` has been removed +- Function `PossiblePrivateEndpointConnectionProvisioningStateValues` has been removed +- Function `*PrivateEndpointConnectionsClient.NewListPager` has been removed +- Function `*timeRFC3339.UnmarshalJSON` has been removed +- Struct `ErrorAdditionalInfo` has been removed +- Struct `ErrorDetail` has been removed +- Struct `ErrorResponse` has been removed +- Struct `NetworkRuleSetIPRule` has been removed +- Struct `NetworkRuleSets` has been removed +- Struct `PrivateEndpoint` has been removed +- Struct `PrivateEndpointConnection` has been removed +- Struct `PrivateEndpointConnectionListResult` has been removed +- Struct `PrivateEndpointConnectionProperties` has been removed +- Struct `PrivateEndpointConnectionsClient` has been removed +- Struct `PrivateEndpointConnectionsClientBeginCreateOptions` has been removed +- Struct `PrivateEndpointConnectionsClientBeginDeleteOptions` has been removed +- Struct `PrivateEndpointConnectionsClientCreateResponse` has been removed +- Struct `PrivateEndpointConnectionsClientDeleteResponse` has been removed +- Struct `PrivateEndpointConnectionsClientGetOptions` has been removed +- Struct `PrivateEndpointConnectionsClientGetResponse` has been removed +- Struct `PrivateEndpointConnectionsClientListOptions` has been removed +- Struct `PrivateEndpointConnectionsClientListResponse` has been removed +- Struct `PrivateLinkResource` has been removed +- Struct `PrivateLinkResourceListResult` has been removed +- Struct `PrivateLinkResourceProperties` has been removed +- Struct `PrivateLinkServiceConnectionState` has been removed +- Struct `PrivateLinksClient` has been removed +- Struct `PrivateLinksClientGetOptions` has been removed +- Struct `PrivateLinksClientGetResponse` has been removed +- Struct `PrivateLinksClientListOptions` has been removed +- Struct `PrivateLinksClientListResponse` has been removed +- Struct `SystemData` has been removed +- Struct `TrackedResource` has been removed +- Field `ProvisioningState` of struct `AppProperties` has been removed +- Field `NetworkRuleSets` of struct `AppProperties` has been removed +- Field `PublicNetworkAccess` of struct `AppProperties` has been removed +- Field `PrivateEndpointConnections` of struct `AppProperties` has been removed +- Field `SystemData` of struct `App` has been removed +- Field `SystemData` of struct `Resource` has been removed + +### Features Added + +- New function `Resource.MarshalJSON() ([]byte, error)` +- New struct `CloudError` +- New struct `CloudErrorBody` +- New anonymous field `App` in struct `AppsClientUpdateResponse` +- New field `Location` in struct `Resource` +- New field `Tags` in struct `Resource` + + ## 0.4.0 (2022-04-15) ### Breaking Changes diff --git a/sdk/resourcemanager/iotcentral/armiotcentral/autorest.md b/sdk/resourcemanager/iotcentral/armiotcentral/autorest.md index f8c8ee58b064..2f3d92cb012d 100644 --- a/sdk/resourcemanager/iotcentral/armiotcentral/autorest.md +++ b/sdk/resourcemanager/iotcentral/armiotcentral/autorest.md @@ -4,10 +4,11 @@ ``` yaml azure-arm: true +tag: package-2021-06 require: -- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/iotcentral/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/iotcentral/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/iotcentral/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/iotcentral/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.4.0 +module-version: 1.0.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/iotcentral/armiotcentral/go.mod b/sdk/resourcemanager/iotcentral/armiotcentral/go.mod index 8a47a2eca9b3..e2546be0e0c5 100644 --- a/sdk/resourcemanager/iotcentral/armiotcentral/go.mod +++ b/sdk/resourcemanager/iotcentral/armiotcentral/go.mod @@ -3,19 +3,19 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotcentral/armiotce go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect github.com/golang-jwt/jwt v3.2.1+incompatible // indirect github.com/google/uuid v1.1.1 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect - golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect - golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect - golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect + golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 // indirect + golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect + golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect golang.org/x/text v0.3.7 // indirect ) diff --git a/sdk/resourcemanager/iotcentral/armiotcentral/go.sum b/sdk/resourcemanager/iotcentral/armiotcentral/go.sum index 56d1c32628ae..ed5b814680ee 100644 --- a/sdk/resourcemanager/iotcentral/armiotcentral/go.sum +++ b/sdk/resourcemanager/iotcentral/armiotcentral/go.sum @@ -1,15 +1,13 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 h1:D7l5jspkc4kwBYRWoZE4DQnu6LVpLwDsMZjBKS4wZLQ= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0/go.mod h1:w5pDIZuawUmY3Bj4tVx3Xb8KS96ToB0j315w9rqpAg0= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 h1:NVS/4LOQfkBpk+B1VopIzv1ptmYeEskA8w/3K/w7vjo= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0/go.mod h1:RG0cZndeZM17StwohYclmcXSr4oOJ8b1I5hB8llIc6Y= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 h1:sLZ/Y+P/5RRtsXWylBjB5lkgixYfm0MQPiwrSX//JSo= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 h1:sVPhtT2qjO86rTUaWMr4WoES4TkjGnzcioXcnHV9s5k= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 h1:Yoicul8bnVdQrhDMTHxdEckRGX01XvwXDHUT9zYZ3k0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0/go.mod h1:+6sju8gk8FRmSajX3Oz4G5Gm7P+mbqE9FVaXXFYTkCM= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 h1:jp0dGvZ7ZK0mgqnTSClMxa5xuRL7NZgHameVYF6BurY= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= @@ -17,37 +15,19 @@ github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= github.com/montanaflynn/stats v0.6.6/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 h1:Qj1ukM4GlMWXNdMBuXcXfz/Kw9s1qm0CLY32QxuSImI= github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4/go.mod h1:N6UoU20jOqggOuDwUaBQpluzLNDqif3kq9z2wpdYEfQ= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNmw2api+jEfxLoykJVice/E= -golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY= -golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4WwuI12DUd2to3nCYe2eayMIw= +golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 h1:HVyaeDAYux4pnY+D/SiwmLOR36ewZ4iGQIIrtnuCjFA= +golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= -golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e h1:fLOSk5Q00efkSvAm+4xcoXD+RRmLmmulPn5I3Y9F2EM= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= diff --git a/sdk/resourcemanager/iotcentral/armiotcentral/ze_generated_example_apps_client_test.go b/sdk/resourcemanager/iotcentral/armiotcentral/ze_generated_example_apps_client_test.go index 46a2204129e5..9bd3af0f8cb1 100644 --- a/sdk/resourcemanager/iotcentral/armiotcentral/ze_generated_example_apps_client_test.go +++ b/sdk/resourcemanager/iotcentral/armiotcentral/ze_generated_example_apps_client_test.go @@ -12,27 +12,25 @@ import ( "context" "log" - "time" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotcentral/armiotcentral" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/Apps_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2021-06-01/examples/Apps_Get.json func ExampleAppsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armiotcentral.NewAppsClient("", cred, nil) + client, err := armiotcentral.NewAppsClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, - "", - "", + "resRg", + "myIoTCentralApp", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) @@ -41,39 +39,39 @@ func ExampleAppsClient_Get() { _ = res } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/Apps_CreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2021-06-01/examples/Apps_CreateOrUpdate.json func ExampleAppsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armiotcentral.NewAppsClient("", cred, nil) + client, err := armiotcentral.NewAppsClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, - "", - "", + "resRg", + "myIoTCentralApp", armiotcentral.App{ - Location: to.Ptr(""), + Location: to.Ptr("westus"), Identity: &armiotcentral.SystemAssignedServiceIdentity{ Type: to.Ptr(armiotcentral.SystemAssignedServiceIdentityTypeSystemAssigned), }, Properties: &armiotcentral.AppProperties{ - DisplayName: to.Ptr(""), - Subdomain: to.Ptr(""), - Template: to.Ptr("